Please sign in to comment.
[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
- Loading branch information...
Showing with 90 additions and 1 deletion.