fix redir from home to apex

This commit is contained in:
Bruno Rybársky 2024-02-02 15:59:36 +01:00
parent eeb043d8d7
commit b903a2db02

@ -38,8 +38,14 @@ function initRouter(): bool
if ($needsRedirect) { if ($needsRedirect) {
if(!empty($routerRequest["subdomain"])){
$sub_domain = $routerRequest["subdomain"] . ".";
}
else{
$sub_domain = "";
}
$redirectAddress = $routerConfig["protocol"] . $redirectAddress = $routerConfig["protocol"] .
$routerRequest["subdomain"] . "." . $sub_domain .
$routerRequest["domain"] . "." . $routerRequest["domain"] . "." .
$routerRequest["tld"] . "/" . $routerRequest["tld"] . "/" .
$routerRequest["page_name"]; $routerRequest["page_name"];