Fixed exception and all areas will now use the base url #72

This commit is contained in:
tidusjar 2016-04-14 17:19:55 +01:00
commit 6dea8b7440
7 changed files with 32 additions and 16 deletions

View file

@ -155,7 +155,9 @@ namespace PlexRequests.UI.Modules
{
Session.Delete(SessionKeys.UsernameKey);
}
return Context.GetRedirect("~/userlogin");
return Context.GetRedirect(!string.IsNullOrEmpty(BaseUrl)
? $"~/{BaseUrl}/userlogin"
: "~/userlogin");
}
private bool CheckIfUserIsOwner(string authToken, string userName)