Bug #62189
closedRendering of a HMENU: Shortcut with different shortcut_mode in different localizations generates empty A-Tag
100%
Description
Situation
TYPO3 6.2.5 (and 6.2.4)
We have A-Tags without href in &L=1 together with pages of type shortcut, if the configuration of L=0 and L=1 is different.
How to reproduce
Generate a simple HMENU
page.20 = HMENU page.20 { 1 = TMENU 1.expAll = 1 1.wrap = <ul>|</ul> 1.NO = 1 1.NO.wrapItemAndSub = <li>|</li> 2 < .1 3 < .1 }
Generate a page of type shortcut with some subpages:
In Default language the shortcut_mode is set to "Selected Page" and a page was selected in "Shortcut Target":
In the additional language &L=1 we choose "First subpage..." in field shortcut_mode and let the "Shortcut Target" empty:
Now in Frontend there is an empty A-Tag (href is missing) in &L=1:
<ul> <li> <a>Shortcut L1</a> <ul> <li> <a href="index.php?id=25&L=1">Page 1</a> </li> <li> <a href="index.php?id=26&L=1">Page 2</a> </li> <li> <a href="index.php?id=27&L=1">Page 3</a> </li> </ul> </li> </ul>
My lanuage settings are pretty simple:
config.linkVars = L config.sys_language_uid = 0 config.language = de config.locale_all = de [globalVar = GP:L=1] config.sys_language_uid = 1 config.language = en config.locale_all = en_EN [end]
Files
Updated by Markus Klein over 9 years ago
- Category set to Frontend
- Status changed from New to Accepted
- Assignee set to Markus Klein
- Priority changed from Should have to Must have
- Target version set to next-patchlevel
Updated by Gerrit Code Review over 9 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/37841
Updated by Gerrit Code Review over 9 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38314
Updated by Markus Klein over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2cab7237a0d320370dc72a6d3e780dcae916edab.