Skip to content
Snippets Groups Projects
Commit f752085c authored by Daniel Goerz's avatar Daniel Goerz Committed by Benni Mack
Browse files

[BUGFIX] Respect index in page type resolution

Resolves: #87155
Releases: master, 9.5
Change-Id: I58595468242e645fe5d0322d84aab80611dbac3e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62863


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 2622bbc6
Branches
Tags
No related merge requests found
......@@ -218,7 +218,7 @@ class PageTypeDecorator extends AbstractEnhancer implements DecoratingEnhancerIn
if (!empty($regularItems) && !empty($this->index)) {
$name = $useNames ? '?P<indexItems>' : '';
$indexPattern = $this->quoteForRegularExpressionPattern($this->index);
$patterns[] = '(' . $name . $indexPattern . '(?:' . implode('|', $regularItems) . '))';
$patterns[] = $indexPattern . '(' . $name . '(?:' . implode('|', $regularItems) . '))';
}
if (!empty($regularItems)) {
$name = $useNames ? '?P<regularItems>' : '';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment