File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,13 @@ class LinkModifier
4040
4141 public function __invoke (AfterLinkIsGeneratedEvent $ event ): void
4242 {
43+ $ this ->contentObjectRenderer = $ event ->getContentObjectRenderer ();
44+ $ this ->frontendController = $ this ->contentObjectRenderer ->getTypoScriptFrontendController ();
45+
4346 if ($ this ->isEnabled ($ event )) {
4447 $ url = $ event ->getLinkResult ()->getUrl ();
4548 $ context = $ event ->getLinkResult ()->getType ();
4649 $ configuration = $ event ->getLinkResult ()->getLinkConfiguration ();
47- $ this ->contentObjectRenderer = $ event ->getContentObjectRenderer ();
48- $ this ->frontendController = $ this ->contentObjectRenderer ->getTypoScriptFrontendController ();
4950
5051 // Strip the absRefPrefix from the URLs.
5152 $ urlPrefix = (string )$ this ->getTypoScriptFrontendController ()->absRefPrefix ;
You can’t perform that action at this time.
0 commit comments