Redirect to original URL after admin login
Deploy with Docker Compose / deploy (push) Successful in 3m49s

Pass the requested URI as ?redirect= when nginx denies access, so the
login page can forward the user to their intended destination on success.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
2026-04-13 11:55:42 +01:00
co-authored by Claude Sonnet 4.6
parent c3db00abf2
commit 390f69858c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ http {
} }
location @auth_denied { location @auth_denied {
return 302 /admin/login; return 302 /admin/login?redirect=$request_uri;
} }
location /searxng { location /searxng {
+2 -2
View File
@@ -173,7 +173,7 @@ http {
} }
location @auth_denied { location @auth_denied {
return 302 /; return 302 /admin/login?redirect=$request_uri;
} }
location /searxng { location /searxng {
@@ -329,7 +329,7 @@ http {
} }
location @auth_denied { location @auth_denied {
return 302 /; return 302 /admin/login?redirect=$request_uri;
} }
location /searxng { location /searxng {