Issue #3051664: Allow the GUI of regex_redirect to support targets without a pattern.
Compare changes
+ 1
− 5
@@ -75,7 +75,7 @@ class RegexRedirectForm extends ContentEntityForm {
@@ -75,7 +75,7 @@ class RegexRedirectForm extends ContentEntityForm {
$this->t('Enter an internal url regex path with named captures. For example: page\/old\/(?P<nr>[0-9a-z]+). Please be aware that certain characters such as "$" need to be escaped due to it being part of a replacement string.');
$this->t('Enter an internal url path with a leading slash and named capture variables between angular brackets. For example: /page/new/<nr>.');
@@ -217,14 +217,10 @@ class RegexRedirectForm extends ContentEntityForm {
@@ -217,14 +217,10 @@ class RegexRedirectForm extends ContentEntityForm {
$form_state->setErrorByName('regex_redirect_source', $this->t('The regex redirect source must be a regex pattern.'));
$form_state->setErrorByName('redirect_redirect', $this->t('The regex redirect redirect must contain a named capture (value between <> brackets).'));