robert 2 år sedan
förälder
incheckning
5a6c4ed1bc
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      mobile/index.php

+ 2 - 1
mobile/index.php

@@ -1,7 +1,8 @@
 
 <?php
   if (!isset($_GET['pos_id'])) {
-    header("Location: {$_SERVER['HTTP_ORIGIN']}/mobile/config.html");
+    $host = (str_contains($_SERVER['HTTP_ORIGIN'], 'vorsortierter-flohmarkt.de')) ? "https://app.vorsortierter-flohmarkt.de" : "";
+    header("Location: {$host}/mobile/config.html");
     exit();
   }
 ?>