exit on redirect

This commit is contained in:
Bruno Rybársky 2024-02-02 16:33:53 +01:00
parent 5a86c772f6
commit aa0db2d582

@ -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{