#91792Automatically created redirects are not created using the DataHandler
Description
Method this is about: \TYPO3\CMS\Redirects\Service\SlugService::createRedirect
This has following drawbacks:
- There is no access check. Redirects are created even if the user is not allowed to create redirects.
- You can not use any hook to intercept, alter or get notfied of the redirect creation
- The sys_history entry is written by a different function than the DH would use. The manual implementation might be forgotten when changes are made to DH’s implementation
- You have no way of knowing the uid of the created redirect to do something with it after the creation.
Actions done by backend users should always be processed by the DH.
Reviews 2
Related issues 8
- Task #89301Streamline automatic slug & redirects handling
- Task #90143Redirects: Poor performance of redirect matching for large redirects table
- Bug #91751Redirects are not tied to site configuation breaking referential integrity and making it impossible to test on/transfer from staging systems
- Bug #91936Documentation missing to disable automatic creation of redirects on slug change
- Feature #92004Create redirect entry if updated slug is published to live
- Bug #95272Redirect after page slug change ignores TCA defaults
- Bug #108948TemporaryPermissionMutationService::removeSysRedirectPermission() corrupts groupData
- Bug #109199Not possible to create redirects as non-admin user if no access to site root page