exit on redirect
This commit is contained in:
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{
|
||||
|
Loading…
Reference in New Issue
Block a user