From e530e5f1abda2c3fc71fb36e9bc03565b9b36a94 Mon Sep 17 00:00:00 2001 From: xarmian Date: Thu, 16 Apr 2026 16:41:39 -0400 Subject: [PATCH] fix: force full navigation for OAuth link buttons (#131) The "Link GitHub"/"Link Google" buttons on /console/settings and the OAuth sign-in buttons on /login were plain tags. SvelteKit intercepted the clicks and did client-side navigation, so the request never hit the nginx router and pad-cloud never saw it. SvelteKit would then try to match /auth/github/link against the [workspace]/[collection] route, 404 on the API calls, and render "Collection not found". Add data-sveltekit-reload so the browser performs a real HTTP navigation and the nginx router can forward /auth/* to the pad-cloud sidecar. --- web/src/routes/console/settings/+page.svelte | 2 +- web/src/routes/login/+page.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/routes/console/settings/+page.svelte b/web/src/routes/console/settings/+page.svelte index bb4488e0..209f55bd 100644 --- a/web/src/routes/console/settings/+page.svelte +++ b/web/src/routes/console/settings/+page.svelte @@ -487,7 +487,7 @@ {#if linked} {:else} - Link {provider === 'github' ? 'GitHub' : 'Google'} + Link {provider === 'github' ? 'GitHub' : 'Google'} {/if} {/each} diff --git a/web/src/routes/login/+page.svelte b/web/src/routes/login/+page.svelte index c3045453..e859d1f7 100644 --- a/web/src/routes/login/+page.svelte +++ b/web/src/routes/login/+page.svelte @@ -209,11 +209,11 @@
- + Continue with GitHub - + Continue with Google