Skip to content

Commit

Permalink
[BUGFIX] Handle possible warning in typolink handling (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
twoldanski authored Aug 9, 2024
1 parent 5308a2f commit 38cbc50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Event/Listener/AfterLinkIsGeneratedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 38cbc50

Please sign in to comment.