documentation/extensions/odoo_theme
Antoine Vandevenne (anv) 7d70725925 [FIX] odoo_theme/switchers: fallback to the original target URL
Attempting to switch from one version to another when navigating
<old_version>/applications/hr/employees.html led to the user being
redirected to /applications/documentation/<new_version>/hr/employees.html
because `hr` was interpreted as a version string, and thus the generated
target URLs of the version switcher were all wrong.

This commit ensures the redirection now falls back onto the original
target URL when all the generated ones point to a 404.

closes 

X-original-commit: c81a91db9c
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-07-07 17:58:06 +02:00
..
layout_templates [FIX] legal: fix some broken links (pdfs, translations) 2023-03-23 16:43:12 +01:00
static [FIX] odoo_theme/switchers: fallback to the original target URL 2023-07-07 17:58:06 +02:00
__init__.py [CLN] core: upgrade to python 3.6 2022-11-17 11:58:56 +01:00
layout.html [IMP] documentation: legal page design 2022-12-08 12:31:09 +01:00
pygments_override.py [CLN] core: upgrade to python 3.6 2022-11-17 11:58:56 +01:00
search.html [REF][MOV] documentation apocalypse 2021-05-04 15:44:00 +02:00
theme.conf [REF][MOV] documentation apocalypse 2021-05-04 15:44:00 +02:00
translator.py [IMP] extensions/custom_admonitions: tweak the HTML structure of dfn 2023-04-12 12:26:13 +02:00