Skip to content
Snippets Groups Projects
Commit be8fc229 authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[IMP] base, http_routing, website: allow custom routing rule


After this commit, you will be able (in technical mode) to update the url for
the python controllers.

Eg.
You can now rename /shop in /garden and /shop/product/ in /garden/vegetable/

Most of urls will be replaced at fly in the renderd qweb, with the function
url_for but all old urls will keep available. So if you access url /shop you
will be automatically redirected to /garden (308 Permanent Redirect).

As for cdn and other post-process of att, the automatically replacement in the
rendered qweb is only done when you will be not website editor. But the new
dispatch of URL will be applied in all cases.

For developper, since it is Permanent Redirect, don't forget to clear cache or
open chrome debug tool (with option 'Disable cache while DevTools is Open) to
see your lasts changes.

closes odoo/odoo#36555

Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
parent b6b42ef7
No related branches found
No related tags found
No related merge requests found
Showing
with 349 additions and 143 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment