Actions
Bug #62189
closedRendering of a HMENU: Shortcut with different shortcut_mode in different localizations generates empty A-Tag
Start date:
2014-10-13
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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
Actions