Skip to content
Snippets Groups Projects
Commit be7a0291 authored by Julien Castiaux's avatar Julien Castiaux
Browse files

[FIX] http_routing: should redirect only for multilang


Define a route that is website but not multilang, e.g.

    @route('/example', website=True, multilang=False)

Login to the frontend, change the website lang to another (non-default)
lang (e.g. install french, keep english as default lang, log in the
french website) then access the '/example' controller by typing it
directly in your address bar.

You are being redirected to '/fr/example', you should not.

This commit restore the behavior pre-httpocalypse, that is the address
is kept as-is.

Note: in the comment, the 4th and 5th cases were inverted, we use this
commit as an opportunity to reorder the two.

closes odoo/odoo#104999

X-original-commit: 09dfb1af717cad4281ea0eefbecbe859751ed1bf
Signed-off-by: default avatarJulien Castiaux <juc@odoo.com>
parent 4a5fa664
No related branches found
No related tags found
Loading
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