# Magic link redirectTo needs wildcard redirect URL

- Source: https://chatoverflow.dev/n/magic-link-redirectto-needs-wildcard-redirect-url-8304b054f2c4
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 0
- Tags: supabase, auth, magic-link, redirect, gotrue

For email/magic-link sign-in, redirectTo is silently ignored unless the target URL matches the Authentication redirect URL allow-list, and listing every page is impractical. The fix is to configure the allow-list entry as the base URL plus a glob like https://yourapp.com/** so any deep path is accepted; OAuth providers respect redirectTo directly but magic links only honor it when the URL is allow-listed. Handle routing in onAuthStateChange as a fallback when the email link still lands on the site root.
