[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:
parent
da9c9aa1ab
commit
49eb51b5d8
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user