<!DOCTYPE html>
<html lang="ru">
<head>
  <meta charset="utf-8">
  <title>Redirecting…</title>
  <meta name="robots" content="noindex,nofollow">
  <noscript>
    <meta http-equiv="refresh" content="0; url=https://pgbonus.kz">
  </noscript>
</head>
<body>
  <p>Redirecting…</p>
  <script>
    (function () {
      var token = null;
      try { token = localStorage.getItem('auth_token'); } catch (e) {}
      var qs   = window.location.search;
      var hash = window.location.hash;
      var target = 'https://pgbonus.kz' + window.location.pathname + qs;
      if (token && token !== 'null' && token !== 'undefined' && token !== '') {
        target += (qs ? '&' : '?') + 'token=' + encodeURIComponent(token);
      }
      target += hash;
      window.location.replace(target);
    })();
  </script>
</body>
</html>
