mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-31 12:00:06 -07:00
Merge pull request #531 from onedr0p/dev
Fix for when you have the base option set and trying to run the wizard (ie.. reverse proxy)
This commit is contained in:
commit
85d8ef57e4
1 changed files with 5 additions and 4 deletions
|
@ -53,14 +53,15 @@ namespace PlexRequests.UI.Modules
|
||||||
private Response CheckAuth()
|
private Response CheckAuth()
|
||||||
{
|
{
|
||||||
var settings = PlexRequestSettings.GetSettings();
|
var settings = PlexRequestSettings.GetSettings();
|
||||||
|
|
||||||
|
var baseUrl = settings.BaseUrl;
|
||||||
|
|
||||||
// Have we been through the wizard?
|
// Have we been through the wizard?
|
||||||
if (!settings.Wizard)
|
if (!settings.Wizard)
|
||||||
{
|
{
|
||||||
return Context.GetRedirect("~/wizard");
|
return Context.GetRedirect(string.IsNullOrEmpty(baseUrl) ? "~/wizard" : $"~/{baseUrl}/wizard");
|
||||||
}
|
}
|
||||||
|
|
||||||
var baseUrl = settings.BaseUrl;
|
|
||||||
|
|
||||||
var redirectPath = string.IsNullOrEmpty(baseUrl) ? "~/userlogin" : $"~/{baseUrl}/userlogin";
|
var redirectPath = string.IsNullOrEmpty(baseUrl) ? "~/userlogin" : $"~/{baseUrl}/userlogin";
|
||||||
|
|
||||||
return Session[SessionKeys.UsernameKey] == null
|
return Session[SessionKeys.UsernameKey] == null
|
||||||
|
@ -68,4 +69,4 @@ namespace PlexRequests.UI.Modules
|
||||||
: null;
|
: null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue