From 49eb51b5d894e85756a3bd636d087191a828d537 Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Wed, 4 Jan 2023 16:37:23 +0000 Subject: [PATCH] [FIX] odoo_theme: re-enable redirect fallback logic closes odoo/documentation#3303 Signed-off-by: Antoine Vandevenne (anv) --- extensions/odoo_theme/static/js/switchers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/odoo_theme/static/js/switchers.js b/extensions/odoo_theme/static/js/switchers.js index d464c69ed..7334cb844 100644 --- a/extensions/odoo_theme/static/js/switchers.js +++ b/extensions/odoo_theme/static/js/switchers.js @@ -12,7 +12,7 @@ * original target URL) that is available. */ const _prepareSwitchersFallbacks = () => { - document.querySelectorAll('a[class="o_switcher_item"]').forEach(element => { + document.querySelectorAll('a.o_switcher_item').forEach(element => { element.addEventListener('click', async event => { if (element.hasAttribute('href')) { const targetUrl = element.getAttribute('href');