Actions
Feature #99834
closedPSR-14 events around auto create redirects are use full for several use-cases
Status:
Closed
Priority:
Should have
Assignee:
Category:
Link Handling & Redirect Handling
Target version:
Start date:
2023-02-05
Due date:
% Done:
100%
Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
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
Actions