Actions
Bug #78512
closeddoNotShowLink/doNotLinkIt-items should not be processed as links
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2016-10-31
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
The following menu does not have any links to non existing translations in the FE:
lib.langswitch = HMENU lib.langswitch{ special = language special.value = 0,1,2 1 = TMENU 1 { NO.wrapItemAndSub = | #Don't show links to languages without existing translation USERDEF1 = 1 USERDEF1.doNotShowLink = 1 USERDEF1.doNotLinkIt = 1 } }
But the links are still processed, which results in faulty realurl page-paths, if realurl is in use.
Quote from Dmitry Dulepov at https://github.com/dmitryd/typo3-realurl/issues/313#issuecomment-257257509 :
Here is where the link is generated: https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/frontend/Classes/ContentObject/Menu/TextMenuContentObject.php#L88
And doNotShowLink is processed after the link is generated: https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/frontend/Classes/ContentObject/Menu/TextMenuContentObject.php#L133
I would suggest to first check if the links are needed, before they are processed.
Actions