Confirm email, reach localhost
Your first real user signs up and clicks the confirmation link. Their browser says 'This site can't be reached: '.
This answers: Why does my email link go to localhost? No coding needed. 2 quick decisions.
- Who is signed in
- How a request travels
Checking your access…
Why does my email link go to localhost?
Your auth provider's Site URL or redirect setting still points at your development address, so production users are sent to , which only exists on your computer. Set the Site URL to your real domain and add each environment's exact to the allowed redirect list.
Breaks at Auth service: Redirects to localhost
Why AI tools write this bug
Auth settings live in the provider's dashboard, not in your code, so AI tools set up a working local flow and never touch the production values.
How to fix it
- Set the Site URL to your production domain.
3 more steps, and a prompt that checks your own app for this bug. Part of Pro.
UnlockCommon questions
- Can I allow redirects to any URL?
- No. Open redirects let attackers send users and their login tokens to sites they control.