GetIdentityServerRelativeUrl should take into account when IdentityServer is running at a subpath
RolandGuijt opened this issue · 1 comments
RolandGuijt commented
The extension method on IServerUrls GetIdentityServerRelativeUrl in the file ServerUrlExtentions.cs doesn't take into account when IdentityServer is running at a subpath.
E.g. when it is running on https://domain.com/idsvr the baseURL would be https://domain.com/idsvr. When the method is fed a returnUrl like /idsvr/... the returned URL would be https://domain.com/idsvr/idsvr/.. which is not correct.
GetAbsoluteUrl in the same file looks affected by this too.
RolandGuijt commented
Disregard. The method is designed to expand urls like /account/login etc not to work on already expanded URLs.