<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Redirecting...</title>

  <meta name="google-site-verification" content="0Qrd0T-yMIDGI_ijAUkL9FG-fKR3QfutOWxRzMUjvM4" />

  <!-- Google Tag Manager -->
  <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  })(window,document,'script','dataLayer','GTM-P9CPVPW');</script>
  <!-- End Google Tag Manager -->

  <script>
    (function() {
      const path = window.location.pathname;

      // בדיקה אם כבר יש /he/ או סיומת שמכילה אותו יותר מפעם אחת
      const heCount = (path.match(/\/he\//g) || []).length;

      // מבצעים הפניה רק אם לא קיימת בכלל
      if (heCount === 0) {
        window.location.replace('/he/index.html');
      } else {
        console.log("Already inside Hebrew path:", path);
      }
    })();
  </script>
</head>
<body>
  <!-- Google Tag Manager (noscript) -->
  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P9CPVPW"
  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  <!-- End Google Tag Manager (noscript) -->

  <p>Redirecting to Hebrew version...</p>
</body>
</html>
