robert 2 년 전
부모
커밋
5a6c4ed1bc
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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();
   }
 ?>