-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] website: language prefixed URL on website
In 10.0 and before, if we were eg. on website page /fr_FR/contact, if `fr_FR` language (french) is installed and not the default website language we would have all URL towards translated content (route with multilang=True) prefixed with /fr_FR/ (the language code). With 9cd982b some improvments were done to CDN but this also breaks language prefixing, so this cause an unecessary redirect: - we are on /fr_FR/contact and click on "Shop" - we go to /shop - odoo redirects US /fr_FR/shop With this PR, URLs are prefixed with language once again. note: the added test is hackish but the function tested depends on a lot of odoo.http things that are hard to use for test (request.render, request.context, request.httpreqest). opw-1922051 closes #31792 Signed-off-by: Christophe Simonis <chs@odoo.com>
- Loading branch information
Showing
2 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rdeodoo