Skip to content
Snippets Groups Projects
Commit ea417016 authored by Stefan Bürk's avatar Stefan Bürk Committed by Benni Mack
Browse files

[FEATURE] Add two PSR-14 events around auto create redirects

With #91776 auto-created redirects have been stored with a
pid of the page, which the slug has been changed. This was
streamlined and changed to use the site rootPageId instead
with #99044, which reverted the original use-case.

This change implements two new PSR-14 events around each
auto-create-redirect:

* `ModifyAutoCreateRedirectRecordBeforePersistingEvent`:
   can be used to modify the redirect record before it is
   persisted

* `AfterAutoCreateRedirectHasBeenPersistedEvent`:
   can be used to chain further task after the redirect
   has been persisted to the database. It's kind of a
   plain notification event.

Resolves: #99834
Related: #99802
Related: #99044
Related: #91776
Releases: main
Change-Id: I974020b148a3b5eb109624648016a79ed557af3e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76539


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarSybille Peters <sypets@gmx.de>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 5efb0832
Branches
Tags
No related merge requests found
Showing
with 576 additions and 9 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment