Issue Bug Closed

#78512doNotShowLink/doNotLinkIt-items should not be processed as links

Benjamin Robinson 10/31/16, 12:35 updated 03/16/20, 08:13

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.