From d2d9d379d4ecd056b1df691c3db26bf0d84add25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Ho=CC=88=C3=9Fl?= Date: Sun, 15 Sep 2024 18:48:09 +0200 Subject: [PATCH] Set current site state for overwritten site-wide home pages --- controllers/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/Base.php b/controllers/Base.php index 7691fa2434..4d89fc1b0e 100644 --- a/controllers/Base.php +++ b/controllers/Base.php @@ -540,6 +540,7 @@ public function loadConsultation(string $subdomain, string $consultationId = '', { if (is_null($this->site)) { $this->site = Site::findOne(['subdomain' => $subdomain]); + UrlHelper::setCurrentSite($this->site); } if ($this instanceof ConsultationController && $this->action->id === 'home') { @@ -577,7 +578,6 @@ public function loadConsultation(string $subdomain, string $consultationId = '', } UrlHelper::setCurrentConsultation($this->consultation); - UrlHelper::setCurrentSite($this->site); $this->layoutParams->setConsultation($this->consultation);