// Also hijack document clicks on /products/ links to force full navigation
document.addEventListener('click', function(e) {
var target = e.target;
while (target && target !== document) {
if (target.tagName === 'A' && target.href) {
try {
var u = new URL(target.href);
if (u.pathname.startsWith('/products/') && u.pathname !== '/products/' && !u.pathname.match(/\.[a-z]{3,4}$/i)) {
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
location.href = target.href;
return;
}
} catch(ex) {}
}
target = target.parentElement;
}
}, true);
})();
}
});
})();