feign icon indicating copy to clipboard operation
feign copied to clipboard

How to clear fragment of RequestTemplate (Feign client 11.10)?

Open wwc7654321 opened this issue 3 months ago • 0 comments

When I do
template.target(newTarget); template.uri(newUri ); in my custom RequestInterceptor , I noticed that the origin fragment was kept in final URL (something like https://newTarget/newPath?newQuery=newVal#oldFragment , the oldFragment is not part of newUri).

The best thing I can do is template.uri(newUri +"#"); and I will get https://newTarget/newPath?newQuery=newVal# . How to fully clear fragment, so I can get https://newTarget/newPath?newQuery=newVal ?

wwc7654321 avatar Oct 24 '25 11:10 wwc7654321