documentation/extensions
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 odoo/documentation#5059

X-original-commit: c81a91db9c
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-07-07 17:58:06 +02:00
..
autodoc_field [FIX] *: remove trailing whitespaces 2022-11-18 18:04:50 +01:00
autodoc_placeholder [ADD] extensions: new autofield directive 2022-05-09 14:03:24 +02:00
cards [ADD] extensions/cards: add an extension to implement cards 2023-02-28 18:08:29 +01:00
custom_admonitions [IMP] odoo_theme: tweak the HTML structure of TOC entries 2023-04-12 12:26:14 +02:00
embedded_video [CLN] core: upgrade to python 3.6 2022-11-17 11:58:56 +01:00
github_link [CLN] core: upgrade to python 3.6 2022-11-17 11:58:56 +01:00
graphviz_placeholder [CLN] core: upgrade to python 3.6 2022-11-17 11:58:56 +01:00
html_domain [CLN] core: upgrade to python 3.6 2022-11-17 11:58:56 +01:00
odoo_theme [FIX] odoo_theme/switchers: fallback to the original target URL 2023-07-07 17:58:06 +02:00
redirects [CLN] core: upgrade to python 3.6 2022-11-17 11:58:56 +01:00
spoilers [IMP] extensions/spoilers: add an extension for spoilers 2022-10-28 14:21:05 +02:00