documentation/extensions/odoo_theme/static
Martin Trigaux c9d95858b4 [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#2051

X-original-commit: 25e863a64c
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Co-authored-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-19 23:12:51 +02:00
..
fonts [REF][MOV] documentation apocalypse 2021-05-04 15:44:00 +02:00
img [REF][MOV] documentation apocalypse 2021-05-04 15:44:00 +02:00
js [IMP] odoo_theme: introduce fallback URLs for the page switchers 2022-05-19 23:12:51 +02:00
scss [FIX] odoo_theme: fix CSS issues and warnings 2022-03-18 16:07:38 +01:00
style.scss [ADD] extension: allow to build graphs using graphviz 2022-05-09 13:30:05 +02:00