documentation/extensions/odoo_theme/static/js
Antoine Vandevenne (anv) 9db7381ea4 [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#5055

X-original-commit: c81a91db9c
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-07-07 16:59:08 +02:00
..
layout.js [IMP] Indentation fix 2023-01-05 09:48:41 +01:00
menu.js [IMP] odoo_theme: design improvements 2023-04-12 10:29:12 +02:00
page_toc.js [FIX] odoo_theme: update the aria attributes when scrolling the page TOC 2022-12-27 13:10:41 +01:00
switchers.js [FIX] odoo_theme/switchers: fallback to the original target URL 2023-07-07 16:59:08 +02:00
utils.js [FIX] odoo_theme/switchers: fallback to the original target URL 2023-07-07 16:59:08 +02:00