Redirect to original URL after admin login
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m49s
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:
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user