Redirect to original URL after admin login
All checks were successful
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 <noreply@anthropic.com>
This commit is contained in:
2026-04-13 11:55:42 +01:00
parent c3db00abf2
commit 390f69858c
2 changed files with 3 additions and 3 deletions

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 {

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 {