Actions
Bug #94963
openPageRouter generates invalid URLs for access restricted mountpoints
Status:
New
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2021-08-23
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
site + A [id=1, slug=/a] + B [id=2, slug=/a/b] + C [id=3, slug=/c, mount_pid=1, mount_pid_ol=1]
If A has no access restriction (fe_group) links generated using \TYPO3\CMS\Frontend\DataProcessing\MenuProcessor (HMENU, special=list
) are valid. The mounted page B will point to /c/b
.
If access restrictions are applied (showAccessRestrictedPages=1
) PageRouter::resolveMountPointParameterIntoPageSlug() does not remove the slug prefix. The mounted page B will point to /c/a/b
.
master: https://github.com/TYPO3/typo3/blob/master/typo3/sysext/core/Classes/Routing/PageRouter.php#L429
10.4: https://github.com/TYPO3/typo3/blob/10.4/typo3/sysext/core/Classes/Routing/PageRouter.php#L428
$mountedPage = $pageRepository->getPage($mountedPage); $mountRoot = $pageRepository->getPage($mountRoot);
If getPage()
is called using $disableGroupAccessCheck=true
valid URLs are generated.
Updated by Oliver Hader about 2 years ago
- Related to Bug #97263: findPageCandidatesOfMountPoint breaks slugs if mount points to a folder and slugs start with the same string added
Updated by Oliver Hader about 2 years ago
- Sprint Focus set to On Location Sprint
Actions