Commit fa2ca063 authored by Mark Harding's avatar Mark Harding

(fix): if not a pro site then signal redirect to root

parent eff0477f
No related merge requests found
Pipeline #117933959 running with stages
......@@ -123,6 +123,9 @@ class Exported
if ($pro = $this->proDomain->lookup($_SERVER['HTTP_HOST'] ?? null)) {
$exported['pro'] = $pro;
} elseif (!$this->proDomain->isRoot($_SERVER['HTTP_HOST'] ?? null)) {
// If not a pro site and not root then tell frontend to redirect
$exported['redirect_to_root_on_init'] = true;
}
return $exported;
......
Please register or to comment