Fix navigation

This commit is contained in:
Bruno Rybársky 2024-02-05 22:05:29 +01:00
parent 9d26c19ee2
commit 5fe6f8c976

@ -158,7 +158,13 @@ function getPage($page_name_in = null, $site_name_in = null): string
function getPageEndpoint($page_name, $site_name) :array
{
global $routerRequest, $routerConfig;
$page_location = $routerConfig["protocol"] . $site_name . $routerRequest["domain"] . "." . $routerRequest["tld"] . "/" . $page_name;
if(!empty($site_name)){
$subdomain = "$site_name.";
}
else{
$subdomain = "";
}
$page_location = $routerConfig["protocol"] . $subdomain . $routerRequest["domain"] . "." . $routerRequest["tld"] . "/" . $page_name;
$page_tmp = renderPage($page_name, $site_name);
return [
"Status" => "Success",