From 322da8aa562f9ea80cefaf9cafcff0fe171d8f64 Mon Sep 17 00:00:00 2001 From: corsacca Date: Mon, 4 May 2026 13:41:12 +0100 Subject: [PATCH] Fix Oauth redirect when not logged in --- app/composables/useAuth.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/composables/useAuth.ts b/app/composables/useAuth.ts index 9174a8cf..d7084010 100644 --- a/app/composables/useAuth.ts +++ b/app/composables/useAuth.ts @@ -52,7 +52,10 @@ export const useAuth = () => { const redirectTo = route.query.redirect as string if (redirectTo && redirectTo.startsWith('/')) { - await navigateTo(redirectTo) + // Force a full-page navigation so server-only routes (e.g. /oauth/authorize) + // are reached. SPA navigation falls through the Nuxt pages router and hits + // the [...slug].vue catch-all, which never invokes the server handler. + await navigateTo(redirectTo, { external: true }) } else { await navigateTo('/') }