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(); } }