<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Redirecting...</title>
    <script>
      const validPaths = ['downloads', 'about', 'contact', 'uploads', 'eula', 'privacy_policy'];
      const path = window.location.pathname.slice(1);
      
      if (path.startsWith('api/') || path.startsWith('#/api') || path.startsWith('/#/api')) {
      }
      else if (path === '' || validPaths.includes(path)) {
        sessionStorage.redirect = window.location.pathname;
        window.location.replace(window.location.origin);
      } else {
        window.location.replace(window.location.origin);
      }
    </script>
  </head>
  <body>
    Redirecting...
  </body>
</html>
