修改BUG:跨域错误页面跳转时多了一个/
This commit is contained in:
parent
10092a383d
commit
915d78ccb9
|
@ -29,7 +29,7 @@ namespace Bootstrap.Client.Controllers
|
|||
public IActionResult Error(int id)
|
||||
{
|
||||
var uriBuilder = new UriBuilder(ConfigurationManager.AppSettings["AuthHost"]) { Query = QueryString.Create(CookieAuthenticationDefaults.ReturnUrlParameter, $"{Request.Scheme}://{Request.Host}{Request.PathBase}").ToString() };
|
||||
uriBuilder.Path += Request.Path;
|
||||
uriBuilder.Path = uriBuilder.Path == "/" ? Request.Path.Value : uriBuilder.Path + Request.Path.Value;
|
||||
return Redirect(uriBuilder.ToString());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue