diff --git a/components/ILIAS/GlobalScreen_/classes/UI/Footer/class.ilFooterStandardGroupsProvider.php b/components/ILIAS/GlobalScreen_/classes/UI/Footer/class.ilFooterStandardGroupsProvider.php index 38253d02cc42..ad873f04edb3 100755 --- a/components/ILIAS/GlobalScreen_/classes/UI/Footer/class.ilFooterStandardGroupsProvider.php +++ b/components/ILIAS/GlobalScreen_/classes/UI/Footer/class.ilFooterStandardGroupsProvider.php @@ -92,14 +92,14 @@ public function getEntries(): array } // system support contacts - if (($system_support_url = \ilSystemSupportContactsGUI::getFooterLink()) !== '') { + if (($system_support_url = \ilSystemSupportContactsGUI::getFooterLink()) !== null) { $system_support_title = \ilSystemSupportContactsGUI::getFooterText(); $entries[] = $this->item_factory ->link( $this->id_factory->identifier('system_support'), $system_support_title ) - ->withAction($this->buildURI($system_support_url)) + ->withAction($system_support_url) ->withParent($this->getIdentificationFor(ilFooterStandardGroups::SUPPORT)); } diff --git a/components/ILIAS/SystemFolder/classes/class.ilSystemSupportContactsGUI.php b/components/ILIAS/SystemFolder/classes/class.ilSystemSupportContactsGUI.php index a44905358ca8..a06de1b1a008 100755 --- a/components/ILIAS/SystemFolder/classes/class.ilSystemSupportContactsGUI.php +++ b/components/ILIAS/SystemFolder/classes/class.ilSystemSupportContactsGUI.php @@ -16,6 +16,8 @@ * *********************************************************************/ +use ILIAS\Data\URI; + /** * System support contacts * @@ -93,18 +95,13 @@ public function showContacts() $this->tpl->printToStdout(); } - - /** - * Get footer link - * - * @return string footer link - */ - public static function getFooterLink() + public static function getFooterLink(): null|URI|string { global $DIC; $ilCtrl = $DIC->ctrl(); $ilUser = $DIC->user(); + $uri = $DIC->http()->request()->getUri(); $users = ilSystemSupportContacts::getValidSupportContactIds(); if (count($users) > 0) { @@ -114,11 +111,12 @@ public static function getFooterLink() ilSystemSupportContacts::getMailsToAddress() ); } else { - return $ilCtrl->getLinkTargetByClass("ilsystemsupportcontactsgui", "", "", false, false); + $path = $ilCtrl->getLinkTargetByClass("ilsystemsupportcontactsgui", "", "", false, false); + return new URI($uri->getScheme() . '://' . $uri->getHost() . '/' . $path); } } - return ""; + return null; } /**