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