Bug #103806
closedRenaming a page slug generates duplicate redirects
100%
Description
If a default page suffix like "/" is configured in the Site configuration.
This is caused by the folling process:
- The event listener
TYPO3\CMS\Redirects\EventListener\AddPlainSlugReplacementSource
generates a source by simply concatenating the base URL and the old slug slug, e.g. https://example.org/old-page-path - After that, a second source is generated by
TYPO3\CMS\Redirects\EventListener\AddPageTypeZeroSource
. Inside this class, the source is generated with TYPO3's routing and respects the page suffix. This results in https://example.org/old-page-path/ - If both sources would be the same, the first one would be skipped. But because the are different, both are kept for further processing
- As last step, a redirect for each source is created, which leads to the result from the screenshot
Files
Updated by Georg Ringer 7 months ago
- Related to Bug #103436: Wrong creation of redirects added
Updated by Georg Ringer 7 months ago
- Related to Bug #103798: Falsely created redirects when updating slug of expired page added
Updated by Albrecht Köhnlein 7 months ago
Updated by Gerrit Code Review 6 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84228
Updated by Stefan Bürk 6 months ago
- Related to deleted (Bug #103436: Wrong creation of redirects)
Updated by Stefan Bürk 6 months ago
- Related to deleted (Bug #103798: Falsely created redirects when updating slug of expired page)
Updated by Gerrit Code Review 6 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84228
Updated by Gerrit Code Review 6 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84205
Updated by Gerrit Code Review 6 months ago
Patch set 2 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84205
Updated by Stefan Bürk 6 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 62598777cd60892ba3eed299e071920483aaf960.