Netlify Forms and "Back to our site" with React returns me to a non-existent page

Hi!

I am using React with Netlify Forms. I use the default form submission page, which says: "Thank you! Your form submission has been received. ← Back to our site.

But as you can see, the redirect link to “Back to our site” appends the form name to the return address. Since it’s a single page app, there is no such page. How can I have the form submission success page point to my app root (“/”)?

I am using the React-specific instructions here ( How to Integrate Netlify’s Form Handling in a React App ), and the form works. It just doesn’t work to get back to the site from the default “thank you modal”.

Thanks for your help!

hey there, welcome.

is this helpful at all?

Hi!

Thanks, adding the redirect solved it.