You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently using v2.10.7, would like to request passing in an empty string for the replacement entry for the ReplacePathRegex middleware. At the moment, I see that it requires the replacement entry to not be empty (with it trimmed first).
Main use case for this request is to remove any trailing slashes from the path without having to redirect (EDIT: it is acceptable to only remove the first trailing-slash for us):
In the current documentation for the middleware, the field replacement doesn't mention that it needs to be non-empty or non-white space
When testing out the values in Regex101 and in Go Playground (noted in the Tips section in the docs), the replacement works as intended (i.e., trailing slash removed)
Any Traefik-ers have suggestions around how to do this with the latest version of Traefik, it'll be greatly appreciated, would like this to be considered as a feature request, thanks!
The text was updated successfully, but these errors were encountered:
Welcome!
What did you expect to see?
Currently using
v2.10.7
, would like to request passing in an empty string for thereplacement
entry for the ReplacePathRegex middleware. At the moment, I see that it requires thereplacement
entry to not be empty (with it trimmed first).Main use case for this request is to remove any trailing slashes from the path without having to redirect (EDIT: it is acceptable to only remove the first trailing-slash for us):
Some points around the request/confusion:
replacement
doesn't mention that it needs to be non-empty or non-white spaceTips
section in the docs), the replacement works as intended (i.e., trailing slash removed)keepTrailingSlash
was deprecated some time ago + haven't found any answers or solutions to support current use case in the Community BoardsAny Traefik-ers have suggestions around how to do this with the latest version of Traefik, it'll be greatly appreciated, would like this to be considered as a feature request, thanks!
The text was updated successfully, but these errors were encountered: