© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•8mo ago•
3 replies
Abhishek Sahni (Abhi)

Redirect URL configuration

Hi,

In my web app, I’m using Login with LinkedIn for Auth with Supabase. I have set up the URL configuration in Superbase which allows me to redirect to the right page post-auth.

I am having issues using different auth flows. For example:
- If I log in from the staging website, I would like the Supabase Auth to redirect to the staging website post auth.
- If I log in from the production domain, I would like the Supabase Auth to redirect to the production domain


What I have tried:
- I set the site URL to the production domain and added Redirect URLs to the staging domain- I am using Weweb for the front end builder and there I have a condition to check the URL where the button is being clicked and have set the redirect URL based on the base URL calling the auth function


Issue:- The redirect always defaults to a page on the site URL and ignores the other redirect urls

Any pointers on how I can implement conditional authentication flows?
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

URL Configuration for OAuth Redirect
SupabaseSSupabase / help-and-questions
3mo ago
self hosted redirect url?
SupabaseSSupabase / help-and-questions
15mo ago
Password Reset Redirect URL
SupabaseSSupabase / help-and-questions
4y ago
getAuthorizationDetails just returns redirect_url
SupabaseSSupabase / help-and-questions
2mo ago