I have a contact form on my website which is designed to show a custom success page when the form is submitted, but for some reason it always gives me a 404 error, although when I type in the page manually in the address bar it works.
The success page works perfectly fine on the localhost though.
Link to the contact form: https://label-tech.netlify.app/contact/
Link to the success message: https://label-tech.netlify.app/messages/
The code to my form:
note that the action to my form is “/messages/”
I would really appreciate it if anyone gave me a solution.
Thanks in advance!