#86944Add an optional regex target to sys_redirects
Description
We need an optional regex target. This target should resolve the source with the target regex rules.
Reviews 1
Files 1
History 68
-
Christoph Kratz changed tracker
BugFeature 11/17/18, 10:41 -
Christoph Kratz changed is private 11/17/18, 17:03
-
Gerrit Code Review pushed patch set 1 for master to change 58919 status
NewUnder Review 11/20/18, 16:34 -
Gerrit Code Review pushed patch set 2 for master to change 58919 11/21/18, 09:48
-
Benni Mack changed is private 06/20/24, 10:33
-
Garvin Hicking changed category 06/20/24, 12:54
-
Benni Mack changed status
Under ReviewNew 11/09/26, 11:23 -
Georg Ringer commented and changed status
NewClosed 11/12/26, 19:20
Closing this one as won’t do.
Regular expression redirects already support capture groups in the target (“$1”, “$2”, …), which covers the common case of carrying parts of the source over into the target. A dedicated regex target (pattern + replacement) would add a second regex layer with its own validation, UI and unsafe-expression handling, for what is a rare edge case. More specific needs can be implemented in an extension, for example with a custom PSR-15 middleware or the PSR-14 events of EXT:redirects.