Hi, if I have a stub that has the following reque...
# general
a
Hi, if I have a stub that has the following request url pattern: "^/test/(AB|CD|EF)$", and in the response I have proxyUrlPrefixToRemove: {{request.url}} why does this not work? Basically all I want it to do is, remove the prefix: /test/AB or /test/CD or /test/EF according to the matched request url. I also tried setting proxyURlPrefixToRemove to: /test/{{request.pathSegments[1]}} and that did not work either. Do I need a custom transformer for this or does Wiremock support this? can someone please help me with a solution to this problem? Thanks!
t
Hi @AR yes, you'd need a custom transformer to achieve this as the proxyUrlPrefixToRemove field isn't resolved as a template.
a
Thanks @Tom! Is this a feature enhancement that can be added?
t
Yes, happy to accept a PR for this if you want to create one