Skip to content

Commit

Permalink
BUGFIX: fix unsubscribe links to lead to site node instead of documen…
Browse files Browse the repository at this point in the history
…tNode
  • Loading branch information
dimaip committed Feb 3, 2017
1 parent dd4ec05 commit 425f21b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Resources/Private/Fusion/Root.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ prototype(Psmb.Newsletter:SubscriptionCase) < prototype(Neos.Fusion:Case) {
}

prototype(Psmb.Newsletter:EditSubscriptionLink) < prototype(NodeUri) {
node = ${documentNode}
node = ${site}
additionalParams {
--newsletter = Neos.Fusion:RawArray {
'@package' = 'Psmb.Newsletter'
Expand All @@ -76,13 +76,14 @@ prototype(Psmb.Newsletter:EditSubscriptionLink) < prototype(NodeUri) {
@cache {
mode = 'uncached'
context {
1 = 'documentNode'
1 = 'site'
2 = 'documentNode'
}
}
}

prototype(Psmb.Newsletter:UnsubscribeLink) < prototype(NodeUri) {
node = ${documentNode}
node = ${site}
additionalParams {
--newsletter = Neos.Fusion:RawArray {
'@package' = 'Psmb.Newsletter'
Expand All @@ -95,7 +96,8 @@ prototype(Psmb.Newsletter:UnsubscribeLink) < prototype(NodeUri) {
@cache {
mode = 'uncached'
context {
1 = 'documentNode'
1 = 'site'
2 = 'documentNode'
}
}
}
Expand Down

0 comments on commit 425f21b

Please sign in to comment.