Skip to content

Commit

Permalink
[BUGFIX] Fix override of target page UID for shortcuts (FluidTYPO3#1704)
Browse files Browse the repository at this point in the history
Set on page in array instead of temporary $page variable.
  • Loading branch information
ndurchx authored Feb 3, 2021
1 parent 995a18d commit ffad4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public function parseMenu(array $pages)
$pages[$index] = $targetPage;
}
if ($this->pageService->shouldUseShortcutUid($this->arguments)) {
$page['uid'] = $targetPage['uid'];
$pages[$index]['uid'] = $targetPage['uid'];
}
}
if (true === $this->pageService->isActive($originalPageUid, $showAccessProtected)) {
Expand Down

0 comments on commit ffad4cb

Please sign in to comment.