Skip to content

fix(membership): return to /membership/youtube without a query string - #910

Merged
SomethingNew71 merged 2 commits into
mainfrom
fix/youtube-link-redirect
Sep 28, 2026
Merged

SomethingNew71 merged 2 commits into
mainfrom
fix/youtube-link-redirect

Conversation

@SomethingNew71

Copy link
Copy Markdown
Collaborator

Linking Discord at /membership/youtube sent Cole to the home page with an unused ?code=. The Discord identity was still linked (confirmed in auth.identities).

Cause: Supabase matches redirectTo against the Redirect URLs allowlist as a whole address. …/membership/youtube?linked=1 did not match the exact entry …/membership/youtube, so GoTrue fell back to the Site URL.

Fix: redirectTo no longer has a query string. The page already treats a returned code or error_code as the return. The tests now return with ?code= alone. 34 page tests pass, typecheck is at baseline, and the format check is clean.

🤖 Generated with Claude Code

Supabase matches linkIdentity's redirectTo against the Redirect URLs
allowlist as a whole address, so '?linked=1' failed the exact entry and the
user landed on the Site URL with an unused code. The returned code/error_code
already mark the return.
Without ?linked=1 the return carries only ?code=; the sync ran only on
'linked', so the page linked Discord but never checked the level.
@SomethingNew71
SomethingNew71 merged commit fde5e75 into main Sep 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant