Skip to content

Commit

Permalink
Merge pull request #689 from hmspl/useShortcutUid
Browse files Browse the repository at this point in the history
[BUGFIX] Using useShortcutUid should return shortcut url
  • Loading branch information
NamelessCoder committed Oct 6, 2014
2 parents c341622 + 35a7819 commit 95aa483
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/ViewHelpers/Page/Menu/AbstractMenuViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ protected function getMenuItemEntry($page, $rootLine, array $parentPage = NULL)
}
if (TRUE === (boolean) $this->shouldUseShortcutUid()) {
// overwrite current page UID
$pageUid = $targetPage['uid'];
$page['uid'] = $targetPage['uid'];
}
}

Expand All @@ -451,8 +451,8 @@ protected function getMenuItemEntry($page, $rootLine, array $parentPage = NULL)
}

$page['hasSubPages'] = (0 < count($this->getSubmenu($submenuPid)));
$page['active'] = $this->isActive($pageUid, $rootLine, $originalPageUid);
$page['current'] = $this->isCurrent($pageUid);
$page['active'] = $this->isActive($page['uid'], $rootLine, $originalPageUid);
$page['current'] = $this->isCurrent($page['uid']);
$page['link'] = $this->getItemLink($page);
$page['linktext'] = $this->getItemTitle($page);
$page['class'] = implode(' ', $this->getItemClass($page));
Expand Down

0 comments on commit 95aa483

Please sign in to comment.