Bug #102556
closedEditor is unable to delete a page that contains an automatically created redirect
0%
Description
As an Editor without the permission "modify table sys_redirect" I am able to rename a page. By renaming and modifying the slug a redirect is created. At this point I can't delete the page with that error message:
Files
Updated by Stefan Bürk about 1 year ago
· Edited
- Assignee set to Stefan Bürk
Thanks for the report Christopher.
Just as a remark - with TYPO3 v12.1 this behaviour has changed.
Auto-created redirects are stored on the corresponding "Site Root"
with #99044 [1] and a upgrade wizard is provided to migrate the existing
redirects.
This has been previously changed to be on the pages as a feature for an
agency needing this #91776 [2] - but it played out to provide headache,
as you described. Along with other things changed in v12 (introducing
a generic overhaul regarding the auto-redirect creation along with a
couple of events) the moving to the site-root was a preparation patch.
I don't think this will make it back to v11 in any way, as it would kind
of a behaviour change for a long standing LTS version.
For composer based installations, you could try to manually backport the
TYPO3 v12.1 change [3] to TYPO3 v11 and using a composer patch. But this
will not be provided officially
Additionally, you could try to extract it to a extension and replace the
core redirect service to override the behaviour and doing the same.
[1] https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.1/Important-99044-EnsureAuto-createdRedirectAreStoredOnConnectedSiteRoot.html
[2] https://forge.typo3.org/issues/91776
[3] https://review.typo3.org/c/Packages/TYPO3.CMS/+/76521
This just as a first remark - I will have a relook if we could find
another solution for v11 but this can take some time as I have pressure
on other tasks currently.
Updated by Stefan Bürk about 1 year ago
- Related to Task #99044: Ensure auto-created redirect are stored on connected site root added
- Related to Feature #91776: Use the pid field to associate a redirect with the page it was created for added
Updated by Christoph Lehmann about 1 year ago
- Status changed from New to Closed
When its fixed in v12, then its fine for me to use composer patches. Thank you!
Updated by Sybille Peters 3 months ago
- Related to Bug #99872: Errors with redirects which are attached to deleted pages in redirects module added