diff --git a/lib/router.php b/lib/router.php index 948e863..3a17a0b 100644 --- a/lib/router.php +++ b/lib/router.php @@ -35,7 +35,7 @@ function initRouter(): bool // Page name is empty $needsRedirect = true; $routerRequest["page_name"] = $routerConfig["default_page"]; - echo "cuz page name"; + header("redirReason: cuz page name"); } @@ -54,7 +54,7 @@ function initRouter(): bool // Redirect with default page name header("Location: $redirectAddress"); header("RedirHere: $redirectAddress"); - echo "false"; + header("redirReason: false"); return false; } else{