documentation/extensions
Martin Trigaux a81e0623b0 [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#2052

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:16:49 +02:00
..
autodoc_field [ADD] extensions: new autofield directive 2022-05-09 14:03:24 +02:00
autodoc_placeholder [ADD] extensions: new autofield directive 2022-05-09 14:03:24 +02:00
custom_admonitions [ADD] extensions: add a custom example admonition 2022-01-28 11:20:03 +00:00
embedded_video [FIX] extensions: support parallel read 2021-05-19 15:03:39 +02:00
github_link [FIX] code: typos 2021-05-31 14:44:18 +02:00
graphviz_placeholder [ADD] extension: allow to build graphs using graphviz 2022-05-09 14:03:24 +02:00
html_domain [FIX] extensions: support parallel read 2021-05-19 15:03:39 +02:00
odoo_theme [IMP] odoo_theme: introduce fallback URLs for the page switchers 2022-05-19 23:16:49 +02:00
redirects [FIX] extensions: support parallel read 2021-05-19 15:03:39 +02:00