#62189Rendering of a HMENU: Shortcut with different shortcut_mode in different localizations generates empty A-Tag
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:
tree.png
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:
settings_l1.png
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]