From ac6ceb77a161eae526ecc9abc881e99a552ef290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 2 Feb 2024 16:35:32 +0100 Subject: [PATCH] exit on redirect --- lib/router.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/router.php b/lib/router.php index 3a17a0b..3090011 100644 --- a/lib/router.php +++ b/lib/router.php @@ -25,7 +25,7 @@ function initRouter(): bool if($routerRequest["subdomain"] == $routerConfig["default_site"]){ $routerRequest["subdomain"] = ""; $needsRedirect = true; - echo "cuz apex"; + header("redirReasonApex: yes"); } } @@ -35,7 +35,7 @@ function initRouter(): bool // Page name is empty $needsRedirect = true; $routerRequest["page_name"] = $routerConfig["default_page"]; - header("redirReason: cuz page name"); + header("redirReasonPage: yes"); } @@ -53,8 +53,6 @@ function initRouter(): bool $routerRequest["page_name"]; // Redirect with default page name header("Location: $redirectAddress"); - header("RedirHere: $redirectAddress"); - header("redirReason: false"); return false; } else{