© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
7 replies
Anthony Garand

What is the correct way to implement the next query param in auth/confirm routes?

In the auth/confirm routes for Supabase UI the "next" search param is only used if it starts with
/
/
.

In the Supabase SSR docs it just uses it as is.

If I use the implementation from Supabase UI then it would never work because the redirect URL needs to have the full domain in it.

I don't think it would be a security issue because that URL can only ever be from the allowed URL list. Am I missing something?
jT9Uu7ig.jpg-large.jpeg
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

[RESOLVED] if confirmation by email is enable in auth, what's the correct way to deal with it.
SupabaseSSupabase / help-and-questions
4y ago
What is the "right way" to use URL Configuration? Or auth in localhost?
SupabaseSSupabase / help-and-questions
3y ago
Issue with "Confirm your email" auth (using next.js)
SupabaseSSupabase / help-and-questions
4mo ago
Filter query unless filter param is null
SupabaseSSupabase / help-and-questions
4y ago