Description:
When spec.rules.matches.value contains a special character and the desired substitution is root '/', the routing does not work.
When the substitution is a root target, EG handles the matcher as a PathPrefix, but the UrlRewrite as RegexRewrite. This causes an issue if the matcher contains a $, because:
- If the $ remained un-escaped in the matcher, it is taken as is to the regexRewrite and there it is treated as an end of regex (which drops everything after the $).
- If the $ is escaped, the matcher doesn't work (because its match type is PathPrefix).
Relevant code:
|
Regex: "^" + prefix + `\/*`, |