exit on redirect

This commit is contained in:
Bruno Rybársky 2024-02-02 16:23:31 +01:00
parent a121abd910
commit 8f78663419

@ -51,6 +51,7 @@ function initRouter(): bool
$routerRequest["page_name"];
// Redirect with default page name
header("Location: $redirectAddress");
echo "false";
return false;
}
else{
@ -60,6 +61,7 @@ function initRouter(): bool
if(empty($routerRequest["type"])){
$routerRequest["type"] = "page";
}
echo "true";
return true;
}
}