Index: class.tslib_content.php =================================================================== --- class.tslib_content.php (revision 1981) +++ class.tslib_content.php (working copy) @@ -5440,6 +5440,12 @@ foreach($tCR_rootline as $tCR_data) { foreach($inverseTmplRootline as $rlKey => $invTmplRLRec) { + // If content of the Mount Root is mounting as well (overlaymode): + // Links to this page have to stay within the branch! + if ($invTmplRLRec['_MOUNT_OL'] && $GLOBALS['TYPO3_CONF_VARS']['FE']['enable_mount_root_overlay'] && ($tCR_data['uid'] == $invTmplRLRec['uid'])) { + $startMPaccu = TRUE; + } + // Accumulate MP data: if ($startMPaccu && $invTmplRLRec['_MP_PARAM']) { $rl_mpArray[] = $invTmplRLRec['_MP_PARAM'];