// Fix broken Hebrew footer links — replace hrefs + redirect if visited directly (function(){ // 1. Replace broken hrefs on current page document.querySelectorAll("a[href]").forEach(function(a){ var h = a.getAttribute("href") || ""; if(h.indexOf("%D7%9E%D7%93%D7%99%D7%A0%D7%99%D7%95%D7%AA-%D7%A4%D7%A8%D7%98%D7%99%D7%95%D7%AA") !== -1 || h.indexOf("מדיניות-פרטיות") !== -1){ a.setAttribute("href","/privacy-policy-2/"); } if(h.indexOf("%d7%94%d7%a6%d7%94%d7%a8%d7%aa-%d7%a0%d7%92%d7%99%d7%a9%d7%95%d7%aa") !== -1 || h.indexOf("הצהרת-נגישות") !== -1){ a.setAttribute("href","/accessibility-statement/"); } }); // 2. Redirect if someone visits the broken URL directly var p = decodeURIComponent(window.location.pathname); if(p.indexOf("מדיניות-פרטיות") !== -1){ window.location.replace("/privacy-policy-2/"); return; } if(p.indexOf("הצהרת-נגישות") !== -1){ window.location.replace("/accessibility-statement/"); return; } })();

Uncategorized