Hi,
I have a site with three languages and a products listing where each product page has a contact form. To get the same form everywhere I created a page where the form is defined in all languages and included in the product’s detail view like this:
{% set contact = page.find('/product-contact') %}
<h2>{{ contact.title }}</h2>
<p>{{ contact.content }}</p>
<div class="contact-area">
// also tried just form: forms('form-name') here as well, same behaviour
{% include 'forms/form.html.twig' with { form: forms({'route' : contact.route}) } %}
</div>
The /product-contact frontmatter has cache_enable: false in its frontmatter, but when I have Grav caching enabled there’s a very strange behaviour where it’ll show up only on 2 of the 3 languages. After clearing the cache whichever language page I load first renders the form fine, then usually switching to the second one is fine as well, but on the third it returns null.
When disabling Grav caching everything works as expected. Any idea? And thanks in advance!
Form: v7.1.2 and Grav v1.7.39.4