I've run into issues with the contact form plugin - https://github.com/craftcms/contact-form/issues/156 - Any ideas
-
Have you checked where you're redirecting to? i.e. {{ redirectInput('contact/thanks') }}– AmyFeb 7, 2019 at 13:51
-
Yeah, the redirect is set to '{{ redirectInput('thanks') }}'. This works fine in my local env, and redirects correctly.– Gary VossFeb 7, 2019 at 14:01
-
Could you provide some code just incase there's something you might of missed? - Also which version of Craft are you running?– AmyFeb 7, 2019 at 14:05
-
I've posted the code here: github.com/craftcms/contact-form/issues/156– Gary VossFeb 7, 2019 at 14:21
2 Answers
I inspected your form, and the redirect value is 45e4c422dc3ef7c10d24f04e10a42c07affd1f5456fb253747b332aed6481678thanks.
Perhaps try being more explicit with your redirect, something like: {{ redirectInput(siteUrl ~ 'thanks') }}
Responded to your Github issue, but my guess is you're getting a form validation error on submission and your template code isn't doing anything to display those errors. You can see here for an example: https://github.com/craftcms/guest-entries#usage