Issue Feature Closed

#86944Add an optional regex target to sys_redirects

Christoph Kratz 11/16/18, 15:46 updated 11/12/26, 19:20

Description

We need an optional regex target. This target should resolve the source with the target regex rules.

Reviews 1

Files 1

History 68

  1. Gerrit Code Review pushed patch set 1 for master to change 58919 status New Under Review <span data-processor="relativetime" data-value="2018-11-20T16:34:32+00:00" > 11/20/18, 16:34 </span>

  2. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-11-12T19:20:47+00:00" > 11/12/26, 19:20 </span>

    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.