Redirect is working, and I’m pretty sure I’ve deployed my own custom thank you page which is “/contact/thanks”, but it still redirects to the default Netlify thank you page. Any tips on troubleshooting?
Just fyi, I’ve already checked this page and I think I’m doing everything it says here.
Html is posted in my previous message.
The form name that you’ve set and that shows in our UI
Form name is contact.
Any errors or logs from the Netlify build logs, dashboard or browser developer console
I’m not seeing any errors currently.
Description of anything you have tried that did or didn’t help or make things better/worse
I’ve tried changing the action=“/thanks” , action=“contact#thanks” as advised in a different thread but it doesn’t seem to be the solution.
Could you make the action a URL that is not a redirect? Something like action=/ or action=/myfile.html instead of something that is handled by a redirect? It anyway needs to start with a slash, so the second you mention is known to be nonfunctional and that is called out in the doc you linked to:
If you want to show your own content after the POST rather than our generic thank-you page, make sure you include an action=/path parameter in your form definition. ( /path should be the page you want to display - might be “/” or “/thank-you/english.html” - must be either ‘thank-you’ to use our automatic thank you page, or a path starting with / […]