Project

General

Profile

Actions

Bug #40647

closed

Typo3 creates menu without href attribut inside the a tag

Added by Ralle Büchnitz over 11 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2012-09-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Pages that are created as shortcuts (first subpage) fail to get an href attribute in second language.

This only happens for the second language and shortcut pages. example: <a title="Portfolio">Portfolio</a>

I researched a bit in the code and found out that class 'class.tslib_menu.php' throws an exception on line 1173. Because the shortcut-mode-value is zero.

If the same link is generated within the default language the shortcut-mode-value is 1. And the href attribute is added to the a-tag.

I think it is a problem of the shortcut-mode value in the menuArr-Array inside this class.

I fixed this for my case as quick and dirty to force shortcut-mode value to 1

// CHANGED BY ME
if ($this->menuArr[$key]['shortcut_mode'] == 0) {$this->menuArr[$key]['shortcut_mode'] = 1;}

The problem appears in Version 4.7.4 and also in version 4.6.x

Actions

Also available in: Atom PDF