Skip to content

Commit

Permalink
🐛 Avoid @context in Carbon.Link:URI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto authored Jul 21, 2020
1 parent 110a2fa commit c5e2d3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Resources/Private/Fusion/Link/URI.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ prototype(Carbon.Link:URI) < prototype(Neos.Fusion:Value) {
isNode {
condition = ${linkType == 'node'}
renderer = Neos.Neos:NodeUri {
@context.nodeObject = ${Neos.Link.convertUriToObject(link, node)}
node = ${q(nodeObject).closest(Configuration.setting('Carbon.Link.instanceOfDocument')).get(0)}
section = ${q(nodeObject).is(Configuration.setting('Carbon.Link.instanceOfDocument')) ? false : Configuration.setting('Carbon.Link.prependIdentifier') + nodeObject.identifier}
nodeObject = ${Neos.Link.convertUriToObject(link, node)}
node = ${q(this.nodeObject).closest(Configuration.setting('Carbon.Link.instanceOfDocument')).get(0)}
section = ${q(this.nodeObject).is(Configuration.setting('Carbon.Link.instanceOfDocument')) ? false : Configuration.setting('Carbon.Link.prependIdentifier') + nodeObject.identifier}
}
}
isAssetOrExternal {
Expand Down

0 comments on commit c5e2d3b

Please sign in to comment.