diff --git a/typo3/sysext/core/Classes/Routing/Enhancer/PageTypeDecorator.php b/typo3/sysext/core/Classes/Routing/Enhancer/PageTypeDecorator.php
index c97b96064b3980c4103b5af6ec19d21e0886ffac..7fe3100e217c52969183acabbb4d81e184b948b3 100644
--- a/typo3/sysext/core/Classes/Routing/Enhancer/PageTypeDecorator.php
+++ b/typo3/sysext/core/Classes/Routing/Enhancer/PageTypeDecorator.php
@@ -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>' : '';