diff --git a/Services/Init/classes/class.ilStartUpGUI.php b/Services/Init/classes/class.ilStartUpGUI.php index 05c3743c5403..b0685b46e3bc 100755 --- a/Services/Init/classes/class.ilStartUpGUI.php +++ b/Services/Init/classes/class.ilStartUpGUI.php @@ -1556,8 +1556,12 @@ protected function processIndexPHP(): void // In case of an valid session, redirect to starting page if ($this->authSession->isValid()) { - ilInitialisation::redirectToStartingPage(); - return; + if (!$this->user->isAnonymous() || ilPublicSectionSettings::getInstance()->isEnabledForDomain( + $this->httpRequest->getServerParams()['SERVER_NAME'] + )) { + ilInitialisation::redirectToStartingPage(); + return; + } } if (ilPublicSectionSettings::getInstance()->isEnabledForDomain($_SERVER['SERVER_NAME'])) {