By platform

Clerk redirect URL not working: causes and fixes

People sign in and land on the home page, the sign in page again, or a page that is not found. Simulated visitors sign up and sign in and show where they end up.

5 visitors try to .
First test free with an accountRun it from your coding agent

Why does Clerk send users to the wrong page after sign in?

There are several places that decide where a person lands, and one can override another: a redirect address in the link they came from, the after sign in and after sign up settings, and your own route rules. Sign up and sign in are set separately, so one can be right and the other wrong. A simulated visitor signs up and signs in and shows the page each one ended on.

What this looks like in a report

Who
Aurelio, a photographer looking at an invoice tool's plans
How they arrived
Clicked a plan on the pricing page
Where they stopped
Dashboard, after signing in from the pricing page

“I picked a plan, had to make an account, and then I was dropped on an empty dashboard. I had to find my way back to pricing myself. It felt like I lost the thing I came for.”

The fix. Pass the page the person came from as the redirect when they pick a plan, set separate after sign up and after sign in addresses, and check that route rules do not send signed in people to the home page.

An illustration. Run a test to see your own.See a real sample report

Three things decide where they land, and they do not agree

A person who clicks Sign in from a pricing page expects to return to pricing. A person who just signed up expects the first screen. Several rules compete: an address carried in the link, a default for after sign in, a default for after sign up and what your routes do with a logged in visitor. When they disagree, one silently wins. You test one path, the one you wrote, and never see the person who arrived from a shared link and lands somewhere unrelated.

  • Sign up from the home page. Which page do you land on?
  • Sign in from a protected page's link. Are you sent back to it?
  • Sign in from the pricing page. Do you land where you started?
  • Compare sign up with sign in. Do they end on the same page when they should not?
  • Open a protected page while signed out. Does the sign in page keep the address to return to?

Sign up and sign in are separate

Where someone lands after creating an account is usually its own setting, apart from where they land after signing in. A new account might need a welcome step, while a returning one needs their work. Check both, and check what the settings say compared with an address carried in the link, since a carried address often takes priority over a default.

Your route rules get a vote

Rules that protect pages send signed out people to sign in. Rules on the home page may send signed in people to the dashboard. Together they can bounce someone: sign in, home, dashboard, and the page they wanted is lost. Read your rules for what happens at each step, with a signed in and a signed out person. Try both with a signed out person arriving by a shared link, since that is the case your own tests skip and the one that bounces.

Allowed addresses and the live domain

If a redirect names an address that is not allowed, or still the local one, it is ignored or errors. Check that every redirect names a live address that exists. A page that was renamed after you set the redirect gives a not found screen: try each redirect address by hand. Do this for every redirect your settings and code name, and once in a private window.

What a visitor shows

Ask visitors to sign up from a specific page and say where they should end. The report lists each step, the address they reached and a screenshot. Visitors sign up with email and a working inbox. They cannot use Google sign in. With paid credits, they log in with a test account you give them, so you can compare sign in with sign up.

Mimiq is independent and not affiliated with the platforms it names. Names belong to their owners.

What you get with Mimiq

  1. 01

    Run it by hand, or on every pull request

    Paste a link and a task in the app and watch the visitors work. Or run them on every preview deploy: the GitHub Action comments on the pull request, any other CI can call the MCP endpoint, and your coding agent can run it too.

  2. 02

    Bugs and usability problems in one report

    The browser records errors and failed or slow requests on the step they happened. The visitors say where the wording or the steps confused them, and where they left.

  3. 03

    Visitors that behave like your audience

    Each visitor is a different profile with a reason to be there, matched to who the page is for, described by you, or built from your own customers.

  4. 04

    A prompt to fix each problem

    Every problem comes with a fix to paste into Cursor, Claude Code, Lovable or any coding agent, and one prompt hands over the top problems at once. Then send the same visitors through again.

  5. 05

    Follow every visitor

    See each visitor's whole path, step by step with screenshots, and what it was thinking at every step. Ask any visitor a question.

The browser records relevant JavaScript errors and failed or slow app requests encountered during the run, attached to the step where they occurred. The visitors are simulated: they find problems, they do not predict how many real people will convert.

A renamed page or new rule can send people astray again

Renaming a page, adding a protected route or changing a default can move people to the wrong place while sign in itself keeps working. Rerun the same visitors after each routing change and compare where they land. Paid credits let visitors use a test account you give them, so the sign in path is checked as well as sign up.

Starter

Try it on one launch

$9 once
120 credits, never expire

24 visitors, about 4 tests of 5

  • Visitors on your landing page, signup and checkout
  • Where they left and why, with a fix to copy for each problem
  • Run it in the app or on every pull request
  • Ask any visitor a question, included
  • Test accounts and protected previews
Buy 120 credits

Builder

Test every build

$19 a month
500 credits every month

100 visitors, about 20 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Builder

Pro

Test every release, as a team

$49 a month
1,500 credits every month

300 visitors, about 60 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Pro

Scale

Test at scale, every day

$149 a month
6,000 credits every month

1,200 visitors, about 240 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Priority support
  • Cancel anytime
Choose Scale
$0for your first test, with a free account (Google or email, no card). It includes 50 credits, enough for 10 visitors. After that a visitor uses 5 credits, and packs start at $9 for 120 credits.
See a sample report

Questions

Which setting wins, the link or the default?

An address carried in the link usually takes priority over the default, but check the current behavior of your version in its documentation. Test it: sign in from a link that carries an address and from one that does not.

Why do sign up and sign in land differently?

They are configured apart. Set both on purpose, so a new person gets a welcome step and a returning person gets their work. Set both on purpose and test them one after the other.

Can my own route rules cause it?

Yes. A rule that sends signed in people from one page to another can override where they were going. Read the rules for each case. Read the rules once for a signed in person and once for a signed out person.

Can the test tell me which setting is wrong?

No. It shows where each visitor ended up and the steps. You then compare that with your settings and rules. It shows the steps and the final address of each visitor, which you then compare with your settings.

Does it test Google sign in?

No. Visitors cannot use Google or another single sign on. Test those on a real device by hand. Check those by hand on a real device, since the test uses an email address for sign up.

Will the test tell me how many people get lost after sign in?

No. It does not predict how many real people will end up on the wrong page. It shows the path of each visitor, so you can see which redirect fails and for which starting page.

Keep reading

Send visitors and see what breaks first.

Your first test is free: sign in with Google or email and it starts right away. Last checked 2026-12-03.

5 visitors try to .