robert 2 lat temu
rodzic
commit
5a6c4ed1bc
1 zmienionych plików z 2 dodań i 1 usunięć
  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();
   }
 ?>