How to use Neos.Link.resolveNodeUri Eel Helper?

Hi everyone,

in certain cases I need to convert a node://-Uri to an actual Url for a link. I think the mentioned Eel Helper would be the right approach. However, I can’t manage to invoke it correctly. What are the correct values for the contextNode and controllerContext arguments?

best regards,

Could you provide some code you work on?

I need to get the target URL of a TYPO3.Neos:Shortcut to be rendered as a link. I need to support both external and internal links, so the <neos:link.node> viewhelper is not an option (?)
Basically the TypoScript looks like this:
shortcut { renderer = TYPO3.TypoScript:Case { node { condition = ${String.startsWith(q(node).property('target'), 'node://')} renderer = ${Neos.Link.resolveNodeUri(q(node).property('target'), q(node).get(0), null)} } default { condition = ${true} renderer = ${q(node).property('target')} } } condition = ${q(node).is('[instanceof TYPO3.Neos:Shortcut]')} }

Got it. I can get the controllerContext, which is the third argument for this Eel Helper, via this.tsRuntime.controllerContext