[FIX] odoo_theme: re-enable redirect fallback logic
closes odoo/documentation#3297 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
parent
f6bb78491b
commit
b14a4c6762
@ -12,7 +12,7 @@
|
|||||||
* original target URL) that is available.
|
* original target URL) that is available.
|
||||||
*/
|
*/
|
||||||
const _prepareSwitchersFallbacks = () => {
|
const _prepareSwitchersFallbacks = () => {
|
||||||
document.querySelectorAll('a[class="o_switcher_item"]').forEach(element => {
|
document.querySelectorAll('a.o_switcher_item').forEach(element => {
|
||||||
element.addEventListener('click', async event => {
|
element.addEventListener('click', async event => {
|
||||||
if (element.hasAttribute('href')) {
|
if (element.hasAttribute('href')) {
|
||||||
const targetUrl = element.getAttribute('href');
|
const targetUrl = element.getAttribute('href');
|
||||||
|
Loading…
Reference in New Issue
Block a user