exit on redirect
This commit is contained in:
parent
a121abd910
commit
8f78663419
@ -51,6 +51,7 @@ function initRouter(): bool
|
|||||||
$routerRequest["page_name"];
|
$routerRequest["page_name"];
|
||||||
// Redirect with default page name
|
// Redirect with default page name
|
||||||
header("Location: $redirectAddress");
|
header("Location: $redirectAddress");
|
||||||
|
echo "false";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -60,6 +61,7 @@ function initRouter(): bool
|
|||||||
if(empty($routerRequest["type"])){
|
if(empty($routerRequest["type"])){
|
||||||
$routerRequest["type"] = "page";
|
$routerRequest["type"] = "page";
|
||||||
}
|
}
|
||||||
|
echo "true";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user