Using a rocketship ds layout causes paragraphs to go through rendering twice

Created on 18 May 2020, about 4 years ago
Updated 21 June 2023, about 1 year ago

Using Rocketship layouts and paragraphs causes paragraphs to go through rendering twice. (this in turn causes issues with advanced forms if you have a paragraph that references a form)

  {% if content.top is not empty and content.top|render|striptags|length %}
    <div class="layout__region layout__top {{'layout__' ~ 'top' ~ '--' ~ entityType ~ '--' ~ bundle ~ '--' ~ viewMode }}">
      {{ content.top }}
    </div>
  {% endif %}

This extra check where the content is rendered in the template causes the issue. When I remove that extra check the build is rendered correctly.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium nielsaers

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024