Odoo Help

2

1
6 Answers
0
Andrew Hastings United States
7/24/17, 4:23 PM

I know this is an old post, but it is coming up on Google First Page. So I thought it might help someone else.  I had the same problem, as we often move existing websites over from other platforms. I found this module that will handle it for you. 

https://www.odoo.com/apps/modules/10.0/pr1_url_redirect/


0
OpenGest.Solutions France
6/4/16, 3:31 AM

  You can also do it with jQuery: http://www.opengest.solutions/forum/aide-1/question/odoo-comment-faire-une-redirection-de-page-301-ou-302-12  

0
Dieter Huelskamp Mexico
4/16/15, 11:39 PM

Is there any .htaccess one could write rules not to loose all old urls?

0

I am rewritting routes manually in the controller. But I wish I knew a better way.

    @http.route('/my-old-path-to-event/<path:oldpage>', type='http', auth="public", website=True)
    def redirect_to_event(self, oldpage):
        return werkzeug.utils.redirect("/event", 301)

What I would do if I had more time would be to add a field "oldpage_key" on the event model. Then in my controller, search if I kind find my oldpage withing my events.

I think that in order to write a module, you would need to allow configuration through the UI of the controllers.

0
Marek Mosiewicz Poland
9/16/14, 10:08 AM

werkzung RequestRedirect probably.

1 Comment
Kasper Souren Madagascar
9/16/14, 1:17 PM

I love upvoting and accepting answers here but a 3 word answer is a bit too thin for that :)

Ask a Question
Writer
Keep Informed
2 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now