[BUGFIX] Resolve modified slugs in versioned pages of preview
This change now also fetches versioned records when previewing a workspace, allowing to also query the versioned records if their slug has been changed. This extends WorkspaceRestriction to have a similar behaviour as previously known from PageRepository (pre v8 times), to fetch versioned records. Resolves: #97940 Releases: main, 11.5 Change-Id: I7fe9c081d5a087bf5276510e1a915fc92b72956d Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76355 Tested-by:core-ci <typo3@b13.com> Tested-by:
Nikita Hovratov <nikita.h@live.de> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Nikita Hovratov <nikita.h@live.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/core/Classes/Database/Query/Restriction/WorkspaceRestriction.php 35 additions, 19 deletions...asses/Database/Query/Restriction/WorkspaceRestriction.php
- typo3/sysext/core/Classes/Routing/PageSlugCandidateProvider.php 6 additions, 4 deletions...sysext/core/Classes/Routing/PageSlugCandidateProvider.php
- typo3/sysext/core/Tests/Unit/Database/Query/Restriction/WorkspaceRestrictionTest.php 25 additions, 0 deletions...t/Database/Query/Restriction/WorkspaceRestrictionTest.php
- typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugSiteRequestTest.php 66 additions, 0 deletions...end/Tests/Functional/SiteHandling/SlugSiteRequestTest.php
Please register or sign in to comment