修改BUG:跨域错误页面跳转时多了一个/

This commit is contained in:
Argo-MacBookPro 2018-10-17 17:39:55 +08:00
parent 10092a383d
commit 915d78ccb9
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}
}