LogicTrail
  • Trails
  • Check my app
  • Pricing
  • Sign in
  1. Trails
  2. /
  3. The life of a click
  4. · 4 minutes · Pro

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.

Trail of the bug
  1. Email service
  2. Auth service
  3. Browser

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

  1. 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.

Unlock

Common questions

Can I allow redirects to any URL?
No. Open redirects let attackers send users and their login tokens to sites they control.

Related scenarios

  • Invoice 105Free · 4 min
  • Sign in with Google: Error 400Pro · 4 min
  • The save that saved nothingFree · 4 min

More on this trail

The life of a click: Follow one button press from the browser to the database and back.

Want someone to look?

We check AI-built apps for this and three other common leaks, in plain English.

Check my app
Sign in

Sign in to walk this one

2 decisions, about 4 minutes, and a prompt to check your own app for the same problem.

Sign in No password. We email you a link.

How to fix it

  1. 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.

Unlock