Wrong validation for permanent-redirect and temporal-redirect annotation values #12709
Labels
needs-kind
Indicates a PR lacks a `kind/foo` label and requires one.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Hi everyone,
I think in this file there is a wrong validator for the values of permanent-redirect and temporal-redirect annotation used.
Reasoning: It should be possible to use variables like "$request_uri" for redirecting to the same path as in the original request for example, but this is blocked by the validation because the $ is not allowed.
If I use a configuration-snippet with the following content, it works fine:
So for me it looks like if
URLWithNginxVariableRegex
should be the correct Regex to be used at this point.The text was updated successfully, but these errors were encountered: