Flows overriding the target url,how to over come the problem.

I have Create a reverse proxy and added a Flow to proxy endpoint with condition.

<Condition>(proxy.pathsuffix MatchesPath "/dummy") and (request.verb = "GET")</Condition>

target url:http://sample/sample

proxy url:http://api-test/v1/apiproxy/dummy

It satisfies the conditional flow condition and executes the policies present in flows

but target url is modifying to

targetUrl: http://sample/sample/dummy and getting 404 not Found error.

How can i overCome this issue and hit the targetUrl.

Solved Solved
0 2 259
1 ACCEPTED SOLUTION

@Dinesh Potti,

Use assign message policy or JavaScript policy to disable copying the pathsuffix to the Target url by setting target.copy.pathsuffix to false

View solution in original post

2 REPLIES 2

@Dinesh Potti,

Use assign message policy or JavaScript policy to disable copying the pathsuffix to the Target url by setting target.copy.pathsuffix to false

Hi Nagashree,

Thank's for reply and it work's.