documentation/extensions
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
..
autodoc_placeholder [FIX] extensions: support parallel read 2021-05-19 15:03:39 +02:00
custom_admonitions [ADD] extensions: add a custom example admonition 2022-01-28 09:21:43 +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
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 16:54:50 +02:00
redirects [FIX] extensions: support parallel read 2021-05-19 15:03:39 +02:00
sphinx_tabs [IMP] extensions: add content tabs (backport of cf6ca0fb) 2022-02-23 10:58:12 +00:00