exit on redirect
This commit is contained in:
parent
5a86c772f6
commit
aa0db2d582
@ -35,7 +35,7 @@ function initRouter(): bool
|
|||||||
// Page name is empty
|
// Page name is empty
|
||||||
$needsRedirect = true;
|
$needsRedirect = true;
|
||||||
$routerRequest["page_name"] = $routerConfig["default_page"];
|
$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
|
// Redirect with default page name
|
||||||
header("Location: $redirectAddress");
|
header("Location: $redirectAddress");
|
||||||
header("RedirHere: $redirectAddress");
|
header("RedirHere: $redirectAddress");
|
||||||
echo "false";
|
header("redirReason: false");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
Loading…
Reference in New Issue
Block a user