Skip to content

Commit

Permalink
index of webspaceManager->getPortalInformations() did not match with …
Browse files Browse the repository at this point in the history
…{host} notation from webspaces.xml
  • Loading branch information
Manuel Bertrams committed Feb 1, 2024
1 parent 5f5b1fb commit b032a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sitemap/EventSitemapProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit b032a7e

Please sign in to comment.