Index: typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php --- typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php (revision 451669a0c00752dad4d9d239c7efdd70a451dce7) +++ typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php (revision ) @@ -1501,6 +1501,7 @@ } $recs = $this->sys_page->getMenu($uid, 'uid,pid,doktype,mount_pid,mount_pid_ol,nav_hide,shortcut,shortcut_mode,l18n_cfg'); $hasSubPages = FALSE; + $bannedUids = $this->getBannedUids(); foreach ($recs as $theRec) { // no valid subpage if the document type is excluded from the menu if (\TYPO3\CMS\Core\Utility\GeneralUtility::inList($this->doktypeExcludeList, $theRec['doktype'])) { @@ -1520,6 +1521,10 @@ // are requiring a valid overlay but it doesn't exists $hideIfNotTranslated = \TYPO3\CMS\Core\Utility\GeneralUtility::hideIfNotTranslated($theRec['l18n_cfg']); if ($GLOBALS['TSFE']->sys_language_uid && $hideIfNotTranslated && !$theRec['_PAGES_OVERLAY']) { + continue; + } + // No valid subpage if the subpage is banned by excludeUidList + if (in_array($theRec['uid'], $bannedUids)) { continue; } $hasSubPages = TRUE; \ No newline at end of file