diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2019-03-12 14:21:02 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2019-03-22 16:14:09 +0000 |
| commit | 5324284f560dd15ef949dab3b00d238a3bfa2b5e (patch) | |
| tree | 79b533c4a4255d6ca02e63832418c908996da324 /addons/web/static/src/xml | |
| parent | 3a0bedd655f92ca70c1bf0e69646d3e71fc554eb (diff) | |
[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 9cd982bcc 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>
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions
