#63408Wrong rootline returned by RootlineUtility::generateRootlineCache()
Description
When a subpage is mark as Site Root (columns is_siteroot)
The generateRootlineCache do not take care of the is_siteroot field and generate rootline until pid=0.
—0 TYPO3
——1 Website 1 : is_siteroot = 1
——2 Website 2 : is_siteroot = 1
——3 Microsite (for site factory) : is_siteroot = 0
————4 microsite 1 : is_siteroot = 1
————5 microsite 2 : is_siteroot = 1
For pid 1 and 2 rootline stop at respectively : 1 and 2
For pid 4 and 5 rootline continu and return pid 3 as root.
Correct value should be respectively : 4 and 5
Correction:
in TYPO3\CMS\Core\Utility for the class : RootlineUtility: modify function : generateRootlineCache line 360 : - $parentUid = $page['pid']; + $parentUid = $page['is_siteroot'] == 1 ? 0 : $page['pid'];
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.