I deployed a React site with a form using a Cruip.com template. Everything on the site and the form is working fine, except I cannot get the form to use my custom action page and the default Netlify “thank you” message shows no matter what I do.
On form submission the form works, and the page appears to redirect to my custom action=“/follow-up” page. It is visible in the URL bar, but the Netlify thank you message still appears. A simple refresh actually loads the page I want.
Hiya, sorry you are having trouble getting your forms to work.
This Support Guide is the first port of call to debug any forms issues. Please start here and work through these resources!
We also recommend trying to search the forums or look at topics tagged Netlify forms if you haven’t already - it’s likely your question was already asked by someone else!
If you are still having problems, please provide more information such as what you have already tried, and a link to your live form.
Or using useHistory from the react-router-dom, we can replace the navigate using const history = useHistory();
Then .then(() => history.replace(/your router).