I have a form (whittled down to just one field for testing purposes) that throws a 404 in the console and does not record a submission when submitted at the pretty URL:
If I submit the form at the URL with “.html”, there is no 404 in the console and the form submits correctly:
I have tried submitting the form with and without the “Pretty URLs” post-processing option enabled, and the result is the same each time.
I followed all of the steps in the support guide, but this is the only thing that has worked. For completeness though, here are the other steps I tried to resolve the issue:
- Ensured each form field had a unique name
- Ensured the form tag itself had a name
- Made sure the form method was POST
- Used real data so that the submission was not flagged as spam
- Confirmed in the build log that the form and its fields were found
But again: if I access the page with an .html extension, everything works (at least with this single field).
Here are the items the support guide specifically requests:
The URL for your live form as you want visitors to use it
The form name that you’ve set and that shows in our UI
Any errors or logs from the Netlify build logs, dashboard or browser developer console
404 in the browser console on submit (i.e.,
work-with-us:1 POST https://stupefied-bhabha-c71d3f.netlify.app/work-with-us 404
Description of anything you have tried that did or didn’t help or make things better/worse
Included in the above
A final note that the site is behind a global password set using Netlify’s Access Control options. That can be removed temporarily if needed.