Review main Merged

77633[FEATURE] Introduce SlugRedirectChangeItemCreatedEvent

Stefan Bürk CR +2 V +2 Hard +421 −17 updated 02/02/23, 22:40

Commit message

A new PSR-14 based event "SlugRedirectChangeItemCreatedEvent"
is introduced, allowing extension authors to create additional
redirects for a changed page slug or to remove redirect source
candidates. This is especially useful to ensure creation of
related redirects. This can be used to create redirects for
special page types or sources build by fully respecting
configured route enhancers and decorators.

Custom source implementation must be provided based on already
available `RedirectSourceInterface`. Further events in later
steps of the process with dedicated follow-up changes will
reveal the full-power, which has been kicked-off with the
streamlining of #99188 and this change.

Current behaviour of creating redirects only based on the raw
slug value are kept by implementing a specific EventListener
for it. Extensions can replace the plain slug replacment source
by registering their listeners after the core listener.

TYPO3 core may implement and ship an additional source listener
for building source uri using the page router for page type "0",
therefore repspecting configured enhancers and decorators in a
dedicated patch.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 9