documentation/extensions/odoo_theme/static/js
Martin Trigaux 25e863a64c [IMP] odoo_theme: introduce fallback URLs for the page switchers
When a user clicks on the link of an alternate page in the version or
language switcher, we now check if the page referenced by the target URL
exists or not. If not, we generate a series of fallback URLs from the
target URL and check whether the targeted resource exists or not, until
we read the root of the documentation. As soon as we find a valid URL,
we redirect the user to it.

This is inspired by the behaviour of docs.python.org's version and
language switchers.

task-2534669

closes odoo/documentation#1588

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Co-authored-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-19 16:54:50 +02:00
..
layout.js [REF][MOV] documentation apocalypse 2021-05-04 15:44:00 +02:00
menu.js [FIX] odoo_theme: fix crash on menu loading introduced with 675f7bc8 2021-06-04 16:24:58 +02:00
page_toc.js [FIX] odoo_theme: design fixes 2021-05-28 17:06:58 +02:00
switchers.js [IMP] odoo_theme: introduce fallback URLs for the page switchers 2022-05-19 16:54:50 +02:00
utils.js [IMP] odoo_theme: introduce fallback URLs for the page switchers 2022-05-19 16:54:50 +02:00