Hi, I’ve spent some time debugging an issue with Netlify form data not submitting, and the cause is related to the form action and whether it’s redirected by
The test site has a redirect from
/#test, something I’ve used for single-page sites to make external linking easier.
<form action="/#test/" .../>, the form submits as intended.
<form action="/test/" .../>, which redirects to
/#test, the form doesn’t submit to Netlify, but the redirect still works correctly.
The fix for my use case is simple enough: just change the form action to the non-redirecting path. But I can see this being a bigger issue for sites that may dynamically redirect based on localization or some prior user data.
Is this behavior a bug or intentional for Netlify forms? Should this be added to the form docs as a gotcha with more complex sites?