#20873Preview of hidden page translations is not possible
Description
If the translation of a page is marked as hidden and the default language is not and you try to preview it, you’ll get an error in the frontend that the “Page is not available in the requested language”. With the default language of a page previewing is possible without restrictions.
The problem seems to be line 796 in class.tslib_fe.php
$res = $GLOBALS[‘TYPO3_DB’]->exec_SELECTquery(‘hidden’, ‘pages’, $idQ.’ AND hidden!=0 AND deleted=0’);
Here is checked if the default language of a page is hidden. If so the preview flags will be set. If not, preview mode is disabled, so that in further processing no page translation overlay will be found because the method t3lib_pageSelect::enableFields checks against “hidden=0”.
The only way to show hidden page translations in the frontend is to use the admin panel and set the flag “Show hidden records”. But this is a little bit inconsistent for a backend user if he just uses the magnifiying glass icons to show up pages.
(issue imported from #M11704)