OAuth Redirect to multiple domains

I use supabase with Auth.
My website runs on multiple domains.
How can i redirect to the current page after login?

I also use the AuthUI:
<Auth
  {...}
  providers={["azure"]}
  redirectTo={url}
/>


My .env variables are set like this:
SITE_URL=https://my-page-one.com
ADDITIONAL_REDIRECT_URLS=https://my-page-two.com,https://localhost


However the redirectTo only works for https://my-page-one.com .
On https://localhost it only works if the redirecTo has no additional path and redirects to the origin itself.


How can i redirect to a dynamically created URL?
Was this page helpful?