danurbanowicz / eleventy-netlify-boilerplate

A template for building a blog with the Eleventy static site generator and Decap CMS
https://eleventy-netlify-boilerplate.netlify.app/
MIT License
528 stars 183 forks source link

Add custom thanks page after form submission #43

Closed aalaap closed 3 years ago

aalaap commented 3 years ago

This PR adds a custom thank you page that is displayed after the contact form is submitted.

This redirect is a feature provided by Netlify Forms and as such it only works when deployed.

This closes #42.

danurbanowicz commented 3 years ago

Hi thank you for the PR. Can I ask if you've tested this? Because in the deploy preview the custom thanks page doesn't seem to appear after a form submission.

aalaap commented 3 years ago

@danurbanowicz This is strange. I had tested in the deploy preview it and seen the thanks page myself. Let me take a closer look at it later today.

danurbanowicz commented 3 years ago

Also, I'm not adding any other thanks/credits to the readme as this is unfair to other contributors, and I would prefer to keep the docs as uncluttered as possible. Sorry about that.