From e5e43f3e0b9b553a66280865c89a9908efdd1cc7 Mon Sep 17 00:00:00 2001 From: Adam French Date: Tue, 22 Sep 2026 13:32:51 +0100 Subject: [PATCH] Make post-login redirect leave the SPA for proxied containers nginx's admin auth_request gate bounces /notes/, /sb/ and /hasura/ to /admin/login?redirect=, but Login.vue completed that with router.push(). Those paths are other containers, not Vue routes, so the push matched the catch-all 404 route and the user never left the SPA. Resolve the destination first: if it lands on the route named "404" there is no Vue route for it, so use a real document request and let nginx proxy it. Also reject non-site-relative destinations, since the value comes straight from the query string. Co-Authored-By: Claude Opus 5 --- vue/src/views/admin/Login.vue | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/vue/src/views/admin/Login.vue b/vue/src/views/admin/Login.vue index 06ff6cf..c607d07 100644 --- a/vue/src/views/admin/Login.vue +++ b/vue/src/views/admin/Login.vue @@ -1,7 +1,11 @@