From b032a7ecc2e3bb7c89e1811e95c6cd24697e4986 Mon Sep 17 00:00:00 2001 From: Manuel Bertrams Date: Thu, 1 Feb 2024 23:10:54 +0100 Subject: [PATCH] index of webspaceManager->getPortalInformations() did not match with {host} notation from webspaces.xml --- src/Sitemap/EventSitemapProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sitemap/EventSitemapProvider.php b/src/Sitemap/EventSitemapProvider.php index 2bb4e73..6d06094 100644 --- a/src/Sitemap/EventSitemapProvider.php +++ b/src/Sitemap/EventSitemapProvider.php @@ -64,7 +64,7 @@ private function getLocaleByHost($host) { if(!\array_key_exists($host, $this->locales)) { $portalInformation = $this->webspaceManager->getPortalInformations(); foreach ($portalInformation as $hostName => $portal) { - if($hostName === $host) { + if($hostName === $host || $portal->getHost() === $host) { $this->locales[$host] = $portal->getLocale(); } }