<p>I inspected your form, and the redirect value is <strong>45e4c422dc3ef7c10d24f04e10a42c07affd1f5456fb253747b332aed6481678thanks</strong>.</p>

<p>Perhaps try being more explicit with your redirect, something like: <code>{{ redirectInput(siteUrl ~ 'thanks') }}</code></p>

CC BY-SA 4.0
2019-02-07T18:25:15.663Z
2019-02-07T18:25:15.663Z
Jon Weedin
<p>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: <a href="https://github.com/craftcms/guest-entries#usage" rel="nofollow noreferrer">https://github.com/craftcms/guest-entries#usage</a></p>

CC BY-SA 4.0
2019-02-08T00:20:38.937Z
2019-02-08T00:20:38.937Z
Brad Bell
<p>I've run into issues with the contact form plugin - <a href="https://github.com/craftcms/contact-form/issues/156" rel="nofollow noreferrer">https://github.com/craftcms/contact-form/issues/156</a> - Any ideas</p>

CC BY-SA 4.0
2019-02-07T13:51:03.750Z
Have you checked where you're redirecting to? i.e. {{ redirectInput('contact/thanks') }}
Amy
CC BY-SA 4.0
2019-02-07T14:01:17.390Z
Yeah, the redirect is set to '{{ redirectInput('thanks') }}'. This works fine in my local env, and redirects correctly.
Gary Voss
CC BY-SA 4.0
2019-02-07T14:05:23.797Z
Could you provide some code just incase there's something you might of missed? - Also which version of Craft are you running?
Amy
CC BY-SA 4.0
2019-02-07T14:21:33.313Z
I've posted the code here: https://github.com/craftcms/contact-form/issues/156
Gary Voss
<plugin-contactform>
Contact form on form submission redirects to index.twig
# Contact form on form submission redirects to index.twig

(Asked by: username_0 on 2019-02-07)

I've run into issues with the contact form plugin - <https://github.com/craftcms/contact-form/issues/156> - Any ideas

**Tags:** plugin-contactform

> **Comments:**
> **username_1**: Have you checked where you're redirecting to? i.e. {{ redirectInput('contact/thanks') }}  
> **username_0**: Yeah, the redirect is set to '{{ redirectInput('thanks') }}'. This works fine in my local env, and redirects correctly.  
> **username_1**: Could you provide some code just incase there's something you might of missed? - Also which version of Craft are you running?  
> **username_0**: I've posted the code here: https://github.com/craftcms/contact-form/issues/156  

---

## 2 answers

### Answer by username_2 on 2019-02-07. Score: 1

I inspected your form, and the redirect value is **45e4c422dc3ef7c10d24f04e10a42c07affd1f5456fb253747b332aed6481678thanks**.

Perhaps try being more explicit with your redirect, something like: `{{ redirectInput(siteUrl ~ 'thanks') }}`


---

### Answer by username_3 on 2019-02-08. Score: 0

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>


---

