What breaks

Redirect after form submission: what breaks

The form sends the visitor to a thank-you page, and the message never arrived, or the page is missing. The redirect fired before the save finished, or it points at an address that does not exist.

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

How do I redirect to a thank-you page after a form submission?

Have the server save the form first, then send the browser to the thank-you address with a redirect response, so the page loads only after the save has finished. A redirect that the browser starts before the request returns can cancel the save, and a thank-you address that answers not found leaves the visitor on an error page. Check the Network tab for the form request, its redirect status and the page it lands on. A simulated visitor shows the page it reached after Send.

What this looks like in a report

Who
Adaeze, asking a plumber for a quote on a leaking tap
How they arrived
Found the plumber through a local search on her phone
Where they stopped
Quote form, after Send

“The page went blank for a second, then a page loaded that said not found. There was no thank you anywhere. I could not tell whether they got my request or whether the form had just reloaded and lost it.”

The fix. Save the form before the redirect, and send the redirect from the server after the save returns. Point it at a thank-you address that loads without a login, then send one test quote and check the inbox.

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

The visitor reaches the thank-you page, and the save never finished

The form sends its data and, in the same moment, the browser moves to a thank-you address. The browser leaves the form before the request has reached your server, so the data never lands. The visitor sees a thank-you page and trusts it. Your inbox stays quiet and the lead is gone. A second failure looks the same from outside: the redirect points at a path that was renamed or that only works when logged in, so the visitor lands on a not found page after Send. The thank-you page is then the only proof the form worked, and that page is missing.

  • After Send, does the form request finish before the page changes? Read it in the Network tab.
  • Does the redirect point at the thank-you address you expect, with no typo?
  • Open the thank-you address in a private window. Does it load without a login?
  • After a refresh, does the thank-you page stay, or does it send the visitor back?

The order of save, redirect and page load

Three steps have to happen in order: the form is saved, the browser is sent on, and the thank-you page loads. The sequence only works if the second step waits for the first. A redirect written in the browser, set as soon as the form is submitted, does not wait. The browser abandons the pending request when the page changes, and anything that was still on its way to the server is lost.

A server redirect avoids the race. The server saves the form, then answers the post with a redirect instruction that names the thank-you address. The browser follows it only after the save is complete. That order is the reason most sites send the visitor through a server response rather than a script, and it is the first thing to check when a confirmation page shows up and the lead does not.

Three ways a redirect loses the message

The first is the early redirect described above, where a script moves the page before the request returns. The second is a thank-you address that is wrong. A renamed page, a missing slash or a page that only loads for a logged-in admin answers not found to a visitor, so the confirmation never shows. The third is a redirect that sends the visitor back to the form itself, which invites a second send and brings the duplicate problem with it.

Each of the three looks the same to a visitor, a page change after Send. The difference shows in the Network tab. An early redirect shows a form request that is pending or cancelled. A wrong address shows a redirect whose target answers with an error status. A loop shows the form address again. Read those three lines before you change any code, because each one points at a different fix.

Read the redirect in the Network tab, then the inbox

Submit one test form with the Network tab open. You want a form request that finishes, a response with a redirect status and a location that names the thank-you address, and a final page that loads with a success status. If any of those is missing, the fault is in that step. Then open your inbox and confirm the message arrived, because a page that loads does not prove the save worked.

A simulated visitor reports the page it reached after Send, with a screenshot, so it will show a not found page or a loop. It does not read your inbox or your analytics, so it cannot tell you whether the thank-you page counted the visit or whether the message was stored. Those two checks stay with you. A visitor who reads a clean confirmation can trust the result, but only the inbox proves the save.

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 new form or a moved thank-you page can break the redirect

A new form, a moved thank-you address or a plugin update can change the redirect without anyone noticing. Send one test submission after each change, check the inbox, and rerun the same visitors to see where they land. A thank-you page behind a login can be tested with a test account from paid credits.

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

Should the redirect happen in the browser or on the server?

On the server, after the form is saved. A server redirect answers the form post with an instruction to move, so the browser loads the thank-you page only once the save has finished. A redirect started in the browser can run before the save completes, and the save can be lost.

Why does the thank-you page load but no email arrives?

The page can load while the email step fails, because they are separate steps. Check your mail settings and your inbox on their own. A simulated visitor shows the page it reached after Send, and it cannot see your inbox.

Can the thank-you page show the form data?

It can show a short confirmation, but avoid putting personal data in the address. Addresses are stored in browser history and can end up in server logs. Send the details in the request body or by email, and keep the thank-you address generic.

How do I stop a refresh from sending the form again?

Redirect after the save, so the last page in the history is a plain thank-you page. A refresh then loads that page without sending the form again. The resubmission warning covers the case where the form page itself is the last one visited.

Does a simulated test confirm my analytics recorded the thank-you page?

No. It does not read your analytics, so it cannot tell you whether the thank-you page counted the visit. Check that in your analytics after one test submission, and compare the count with your inbox.

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 .