Wrong validation for permanent-redirect and temporal-redirect annotation valuesΒ #12709
Open
Description
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:
return 301 https://wheelscompany.com/$request_uri;
So for me it looks like if URLWithNginxVariableRegex
should be the correct Regex to be used at this point.
Metadata
Assignees
Labels
Type
Projects
Status
No status