Automatically created redirects are not created using the DataHandler
Method this is about:
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.
Updated by Andreas Kiessling 4 months ago
There is no access check. Redirects are created even if the user is not allowed to create redirects.
And this gets even worse: after a redirect is automatically created, the info popup offers to revert the created redirects.
But since this now uses the RecordHistory, the redirects can not be removed due to missing access rights.