\TYPO3\CMS\Frontend\Typolink\PageLinkBuilder::build doesn't honor l18n_cfg settings
Links to a page within TYPO3, that has the l18n_cfg flag set for "Hide default translation of page", result in TYPO3 creating broken links which leads to a 404 error.How to reproduce:
- create a page and enable "Hide default translation of page" in page settings
- go somewhere else and create a link to that page e.g. in the RTE
TYPO3 creates a link to the page but the link broken (404)
TYPO3 should not create the link
Scope of the problem:
This bug effects all places where, e.g. $this->cObj->typoLink_URL() is used.
- TypoScript and typolink usage
- any record that has a link field (tt_content, tx_news, etc.)
I haven't checked it yet, but I assume that TYPO3 7.6 is affected as well.