98283[FEATURE] Allow "root" in limitToPages of route enhancers
Commit message
The limitToPages option of route enhancers accepts the keyword "root", which matches the root page of the site. No page ID needs to be configured, and the keyword can be combined with page IDs and expressions. This allows, for example, providing sitemap.xml on the root page only, while further page type suffixes configured in a separate PageType enhancer apply to all pages.
Resolves: #105837 Releases: main Change-Id: I88ec687bef4a8c07ba308deea88e0b65b0820b12
Test this change
Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch
- Check out patch set 1
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/83/98283/1 && git checkout FETCH_HEAD
- Cherry-pick onto main
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/83/98283/1 && git cherry-pick FETCH_HEAD
Review
-
Code review CR +1 Needs a vote
- Benni Mack +1
-
Verified V +1 Needs a vote
- Benni Mack +1
- core-ci +1 CI
Merge conflicts 4
Issues 1
Files 4
- typo3/sysext/core/Classes/Routing/PageRouter.php+7 −0
- typo3/sysext/core/Documentation/Changelog/15.0/Feature-105837-RootKeywordForLimitToPagesInRouteEnhancers.rstnew+76 −0
- typo3/sysext/core/Tests/Unit/Routing/PageRouterLimitToPagesTest.php+21 −0
- typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapIndexTest.php+48 −0
Review log 34
-
Georg Ringer uploaded patch set 1 12/02/26, 16:48
-
Georg Ringer commented on patch set 1 12/02/26, 16:50
-
core-ci voted on patch set 1 V +1 12/02/26, 16:55 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116186
-
Benni Mack voted on patch set 1 CR +1 V +1 12/02/26, 19:54