Issue Feature Closed

#99834PSR-14 events around auto create redirects are use full for several use-cases

Stefan Bürk 02/05/23, 15:59 updated 04/05/23, 09:53

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