mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
Change the redirection to use a relative uri redirect #473
This commit is contained in:
parent
0fe7bba9ac
commit
4b5079598d
4 changed files with 15 additions and 15 deletions
|
@ -65,7 +65,7 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
if (!string.IsNullOrEmpty(Username) || IsAdmin)
|
||||
{
|
||||
var uri = Linker.BuildAbsoluteUri(Context, "SearchIndex");
|
||||
var uri = Linker.BuildRelativeUri(Context, "SearchIndex");
|
||||
return Response.AsRedirect(uri.ToString());
|
||||
}
|
||||
var settings = await AuthService.GetSettingsAsync();
|
||||
|
@ -93,7 +93,7 @@ namespace PlexRequests.UI.Modules
|
|||
if (string.IsNullOrWhiteSpace(username))
|
||||
{
|
||||
Session["TempMessage"] = Resources.UI.UserLogin_IncorrectUserPass;
|
||||
var uri = Linker.BuildAbsoluteUri(Context, "UserLoginIndex");
|
||||
var uri = Linker.BuildRelativeUri(Context, "UserLoginIndex");
|
||||
return Response.AsRedirect(uri.ToString()); // TODO Check this
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
Log.Debug("User is in denied list, not allowing them to authenticate");
|
||||
Session["TempMessage"] = Resources.UI.UserLogin_IncorrectUserPass;
|
||||
var uri = Linker.BuildAbsoluteUri(Context, "UserLoginIndex");
|
||||
var uri = Linker.BuildRelativeUri(Context, "UserLoginIndex");
|
||||
return Response.AsRedirect(uri.ToString()); // TODO Check this
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@ namespace PlexRequests.UI.Modules
|
|||
|
||||
if (!authenticated)
|
||||
{
|
||||
var uri = Linker.BuildAbsoluteUri(Context, "UserLoginIndex");
|
||||
var uri = Linker.BuildRelativeUri(Context, "UserLoginIndex");
|
||||
Session["TempMessage"] = Resources.UI.UserLogin_IncorrectUserPass;
|
||||
return Response.AsRedirect(uri.ToString()); // TODO Check this
|
||||
}
|
||||
|
@ -176,11 +176,11 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
if (!landingSettings.BeforeLogin)
|
||||
{
|
||||
var uri = Linker.BuildAbsoluteUri(Context, "LandingPageIndex");
|
||||
var uri = Linker.BuildRelativeUri(Context, "LandingPageIndex");
|
||||
return Response.AsRedirect(uri.ToString());
|
||||
}
|
||||
}
|
||||
var retVal = Linker.BuildAbsoluteUri(Context, "SearchIndex");
|
||||
var retVal = Linker.BuildRelativeUri(Context, "SearchIndex");
|
||||
return Response.AsRedirect(retVal.ToString()); // TODO Check this
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue