Setting BaseURI for named HttpClient in DI not including trailing string
I am trying to use a named HttpClient setup in a Blazor WASM application. In my DI setup, I create it using the following:
However, when the HttpClient is injected into a Razor page and used to query my API using this code: it makes a request like so:
It seems to be dropping the "/api/v1/" portion of the base URI for the request but using the base host/port that I provided (the port running this web application is 5000, which I assume would be the HttpClient default if I hadn't provided a new BaseAddress in my configuration.)
Why is it dropping this portion and how can I get it to stop?
However, when the HttpClient is injected into a Razor page and used to query my API using this code: it makes a request like so:
It seems to be dropping the "/api/v1/" portion of the base URI for the request but using the base host/port that I provided (the port running this web application is 5000, which I assume would be the HttpClient default if I hadn't provided a new BaseAddress in my configuration.)
Why is it dropping this portion and how can I get it to stop?