Linking to translations of pages with "Hide default language" from default language does not work
While working on a customer project, we came accross the use case where the customer wants a page not to be displayed in the default language (for cosmetic purpose in the url mainly) and always links to pages configured this way by adding
&L=1 to additional parameters in the wizard.
The link is generated properly and everything works fine when linking from the default language to the other language until the moment where the customer sets the target page to "Hide default translation of page" = true.
IMHO, since the L parameter is set and the page exists in the given language, the url should be rendered.
This bug can be reproduced in TYPO3 8.7.24 with PHP 7.2, using realurl 2.2.1. It could be ruled out that realurl is the culprit.