From d44bc93776553d10b458bb7dd4d5080050866d6b Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 11 Dec 2019 11:49:51 +1300 Subject: [PATCH] Revert "core: fix login redirect with nginx + admin password. resolves #4765 (#6561)" This reverts commit 642bed1ef429a0d661cd1871799530a19bd7c037. --- src/Jackett.Server/Startup.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Jackett.Server/Startup.cs b/src/Jackett.Server/Startup.cs index 4059c5d4c..a85292a81 100644 --- a/src/Jackett.Server/Startup.cs +++ b/src/Jackett.Server/Startup.cs @@ -45,9 +45,9 @@ namespace Jackett.Server .AddCookie(CookieAuthenticationDefaults.AuthenticationScheme, options => { - options.LoginPath = new PathString(Helper.ServerService.BasePath() + "/UI/Login"); - options.AccessDeniedPath = new PathString(Helper.ServerService.BasePath() + "/UI/Login"); - options.LogoutPath = new PathString(Helper.ServerService.BasePath() + "/UI/Logout"); + options.LoginPath = new PathString("/UI/Login"); + options.AccessDeniedPath = new PathString("/UI/Login"); + options.LogoutPath = new PathString("/UI/Logout"); options.Cookie.Name = "Jackett"; options.Cookie.SameSite = SameSiteMode.None; });