#99834PSR-14 events around auto create redirects are use full for several use-cases
Description
Auto redirect creation lacked the possibility to define
default values or to manipulate the record before it is
persisted to the database. The reason for this was, that
the records are directly written to the database and not
using the `DataHandler` which respects default values
and provide several hooks to use. Without the DataHandler
it was also not possible to process stuff after the redirect
has been persisted, e.g. inform other systems, send emails,
extend statistics or other use-cases.
Therefore two events should be implemented:
- before persisting record: giving the ability to modify
the record before it is written, enhance it with custom
values or change it - after persisting: This would make it possible to react
on really persisted redirects and do further stuff based
on it, having the corresponding concrete redirect record
with the `uid` available
Reviews 3
Related issues 5
- Feature #91776Use the pid field to associate a redirect with the page it was created for
- Task #99044Ensure auto-created redirect are stored on connected site root
- Feature #99802Introducing a event to redirects ManagementController to modify view data helps to enrich view for custom view overrides
- Task #100212Correct examples in redirect event examples
- Task #100331List PSR-14 events in EXT:redirects documentation