Skip to content
Snippets Groups Projects
Commit be772c32 authored by Stefan Bürk's avatar Stefan Bürk
Browse files

[FEATURE] Introduce new PSR-14 BeforeRedirectMatchDomainEvent

A new PSR-14 event `BeforeRedirectMatchDomainEvent` is introduced
to the RedirectService, allowing extension authors to implement a
custom redirect matching.

This can be used to implement custom logic to match the request
and determine a redirect. For example, dealing with `GET` request
params and changing the target based on the value of an parameter.

Therefore, special and rare use-cases can be implemented avoiding
complex all-scenario match logic in the core and keeping it to a
generic and overall cases in the core-implementation.

Resolves: #99803
Releases: main
Change-Id: I1819c3cd27b6a764000b61dc9cde580fa3b6d40d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77675


Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarGuido Schmechel <guido.schmechel@brandung.de>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarGuido Schmechel <guido.schmechel@brandung.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent ea667fb0
Branches
Tags
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