- Site : camping-arolla-2018.netlify.app
- I have a form
contactworking fine for some years.
- This form is on every page’s footer.
- I decided to add
actionon the form, so I added
action = "/my_calling_page/"from every
my_calling_page(who change on evey page).
It failed, and on the forum I discover that because this action is a POST i can’t use the same page (called by GET normally). Fine.
I decided to remove this
action = "/my_calling_page/"snipplet to revert to the original form.
And it was not working as expected. I still got URI errors and 404, even if the message was correctly sent.
Bug explanation & workaround
- Long StoryShort, after LOT of debug, i decided to use a new form
contact2in my form. No other change => And the form was working again fine.
- I changed back to
contact=> same problem again.
So i suspect that “somewhere” there is a small trace of my previous use of “action”. it is the only explanation after 3 hours of full debug…
- With the exact same code, my new form
contact2works fine, and original
contacthas those troubles.
I’m available to help the Netlify team debug this if it can help.
I specially created a branch on Netlify who demonstrate this strange behaviour, so Netlify staff can look inside what’s causing this.
Only difference is this branch has original form name
contact (the one who had briefly an
Message is sent, but we got a 404.
diff --git a/layouts/partials/form_contact.html b/layouts/partials/form_contact.html
index 86837d9..59c2719 100644 --- a/layouts/partials/form_contact.html +++ b/layouts/partials/form_contact.html @@ -1,5 +1,5 @@ -<form id="contact-form" name="contact2" method="POST" data-netlify="true" data-netlify-recaptcha="true" netlify-honeypot="surprise"> +<form id="contact-form" name="contact" method="POST" data-netlify="true" data-netlify-recaptcha="true" netlify-honeypot="surprise"> --