[BUGFIX] Invalid shortcut target on translated pages 65/12765/6
authorOliver Hader <oliver@typo3.org>
Sat, 13 Oct 2012 11:38:19 +0000 (13:38 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 17 Feb 2014 22:57:31 +0000 (23:57 +0100)
commitadac6161871cf4e09b492606e89059042d7c433b
tree80ae9f78150bd227b9c9bc17e2a4a8ffdab665fb
parentcb9ce2025bf0f112d33a438df8dab3413647df5f
[BUGFIX] Invalid shortcut target on translated pages

A feature to resolve shortcut links directly in menu rendering
does not consider the overlay behaviour of the "shortcut" value.

TSFE first uses the "shortcut" value of the original/default
page and then serves for possible translated alternatives
(TypoScriptFrontendController::checkTranslatedShortcut()).
In menu rendering it's the other way round, the translated
overlay (if any) is used directly - the fallback to use the
"shortcut" value of the original/default page is not implemented.

This change introduces the fallback when rendering menus, which
will take the "shortcut" value of the default language if the
value in the overlay is empty.

Change-Id: I26a9eb4813c6b99327043b0a764ec7ff80b6a905
Fixes: #36822
Releases: 6.2, 6.1
Reviewed-on: https://review.typo3.org/12765
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php