[FIX] odoo_theme: re-enable redirect fallback logic

closes odoo/documentation#3303

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Antoine Vandevenne (anv) 2023-01-04 16:37:23 +00:00
parent da9c9aa1ab
commit 49eb51b5d8

View File

@ -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');