From 38cbc50020b9e1f05ff4b656fd212572f01e10fd Mon Sep 17 00:00:00 2001 From: twoldanski <66474451+twoldanski@users.noreply.github.com> Date: Fri, 9 Aug 2024 16:29:52 +0200 Subject: [PATCH] [BUGFIX] Handle possible warning in typolink handling (#758) --- Classes/Event/Listener/AfterLinkIsGeneratedListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Event/Listener/AfterLinkIsGeneratedListener.php b/Classes/Event/Listener/AfterLinkIsGeneratedListener.php index f91601e8..bf53f463 100644 --- a/Classes/Event/Listener/AfterLinkIsGeneratedListener.php +++ b/Classes/Event/Listener/AfterLinkIsGeneratedListener.php @@ -109,7 +109,7 @@ private function getTargetSite(AfterLinkIsGeneratedEvent $event): Site throw new UnableToLinkException('Could not resolve link details from ' . $linkParameter, 1642001442, null, $event->getLinkResult()->getLinkText()); } - if (($linkDetails['pageuid'] ?? '') === 'current') { + if (($linkDetails['pageuid'] ?? 'current') === 'current') { return $event->getContentObjectRenderer()->getRequest()->getAttribute('site'); }