Project

General

Profile

Actions

Bug #62189

closed

Rendering of a HMENU: Shortcut with different shortcut_mode in different localizations generates empty A-Tag

Added by Alex Kellner over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Frontend
Target version:
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&amp;L=1">Page 1</a>
      </li>
      <li>
        <a href="index.php?id=26&amp;L=1">Page 2</a>
      </li>
      <li>
        <a href="index.php?id=27&amp;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

tree.png (1.33 KB) tree.png Alex Kellner, 2014-10-13 11:15
settings_l0.png (25.8 KB) settings_l0.png Alex Kellner, 2014-10-13 11:15
settings_l1.png (21.8 KB) settings_l1.png Alex Kellner, 2014-10-13 11:15
Actions #1

Updated by Markus Klein about 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
Actions #2

Updated by Gerrit Code Review about 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

Actions #3

Updated by Gerrit Code Review about 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

Actions #4

Updated by Markus Klein about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF