Stop url encoding of "?" in middleware

I am setting up a traefik instance to provide a universal url for several Azure Functions.

Plan is to have a example.tld/fa/app/[deployslot/]functionName style url which would than be rewritten to the https://app[-deployslot].hostname.tld/runtime/webhooks/EventGrid?functionName=&code=appcode

When translating the path in a middleware using replacePathRegex, the ? will be encoded as %3F and that seems to break the call to the function app.

is there a way to make sure the ? will not get encoded?

Thanks!

Did you check the Traefik GitHub issues? If no one else had the problem before, maybe open an issue there.