diff --git a/Classes/Event/Listener/AfterLinkIsGeneratedListener.php b/Classes/Event/Listener/AfterLinkIsGeneratedListener.php index b54848d8..7d587865 100644 --- a/Classes/Event/Listener/AfterLinkIsGeneratedListener.php +++ b/Classes/Event/Listener/AfterLinkIsGeneratedListener.php @@ -56,11 +56,11 @@ public function __invoke(AfterLinkIsGeneratedEvent $event): void $site = $event->getContentObjectRenderer()->getRequest()->getAttribute('site'); $key = 'frontendBase'; - if (is_string($pageId) && str_starts_with($pageId, 't3://page?uid=current&type=' . $site->getSettings()->get('headless.sitemap.type', '1533906435'))) { - $key = $site->getSettings()->get('headless.sitemap.key', 'frontendApiProxy'); - } - if (!$site instanceof NullSite) { + if (is_string($pageId) && str_starts_with($pageId, 't3://page?uid=current&type=' . $site->getSettings()->get('headless.sitemap.type', '1533906435'))) { + $key = $site->getSettings()->get('headless.sitemap.key', 'frontendApiProxy'); + } + $href = $urlUtility->getFrontendUrlWithSite($event->getLinkResult()->getUrl(), $site, $key); } } diff --git a/ext_emconf.php b/ext_emconf.php index 9c1bc0dc..1866c8d0 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -15,7 +15,7 @@ 'author_email' => 'extensions@macopedia.pl', 'author_company' => 'Macopedia Sp. z o.o.', 'category' => 'fe', - 'version' => '4.2.6', + 'version' => '4.2.7', 'constraints' => [ 'depends' => [ 'frontend' => '12.4.3-12.5.99',