mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 15:32:37 -07:00
Fixed admin redirect issue
This commit is contained in:
parent
5bd8e5f313
commit
8e2b4ac8f4
2 changed files with 6 additions and 6 deletions
|
@ -192,7 +192,7 @@ namespace PlexRequests.Core
|
|||
|
||||
var r = response(context);
|
||||
return r.StatusCode == code
|
||||
? new RedirectResponse(url.ToString())
|
||||
? new RedirectResponse($"{url.ToString()}?redirect={context.Request.Path}")
|
||||
: null;
|
||||
}
|
||||
public Response HasAnyPermissionsRedirect(NancyContext context, string routeName, HttpStatusCode code, params Permissions[] perm)
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#endregion
|
||||
using Mono.Data.Sqlite;
|
||||
using Nancy.Authentication.Forms;
|
||||
|
||||
using Nancy.Linker;
|
||||
using Ninject.Modules;
|
||||
|
||||
using PlexRequests.Core;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue