getgrav / grav-plugin-email

Grav Email Plugin
http://getgrav.org
MIT License
37 stars 29 forks source link

Contact form behaviour has changed #116

Closed withindale closed 1 year ago

withindale commented 5 years ago

Using an Html particle after Content in the main container in a Gantry layout all our pages have a contact enquiry form appended: {% include "forms/form.html.twig" with {form: forms('contact')} %}

Before the recent email updates this worked well - after submitting the form the page would redisplay with a success message and the form.

Now the page does not redisplay except for two copies of the contact form. It appears the first one somehow replaces the page display and the success message. Refreshing the page redisplays the page as before with content and form.

Where to look for the source of this problem?

Thank you

rhukster commented 5 years ago

I think this may be a Gantry thing? Sounds like the Twig is being escaped.

mahagr commented 5 years ago

I'm not sure that it is Gantry; I was seeing a similar thing at some point when I was refactoring the form plugin.

@withindale What is the easiest way to reproduce this issue in my local test environment? Which theme were you using? Did you make any changes or added files? Can you share the page and template files for the page?

withindale commented 5 years ago

@mahagr Have attached zipped base page template files. There is custom html after the main content. The form page is in the other zip. I will send two screen shots (before, after) separately so you can see what is happening. These show the page after submission. The form text appears on the after shot as I enabled it in the form plug in.

Downloads-yaml.zip form (1).zip

withindale commented 5 years ago

Email-Form-after Email-Form-before

withindale commented 5 years ago

Before shows the blog items and the Ask Codeway form message after submission. After shows the same form below (Contact Codeway replaced Ask Codeway) with the contact form above. You can try it at www.codeway.biz/en/

@mahagr Supra theme