Skip to content

Yarp adds a trailing slash to destination #1536

Answered by Tratcher
czobrisky asked this question in Q&A
Discussion options

You must be logged in to vote

The proxied request path is the combination of the destination address and the original request path. In your example the request path is "/", and the destination address is "http://localhost/path", so you get "http://localhost/path/".

You can adjust this with a request transform:
https://microsoft.github.io/reverse-proxy/articles/transforms.html#addrequesttransform

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@czobrisky
Comment options

@Tratcher
Comment options

@czobrisky
Comment options

Answer selected by czobrisky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants