Paragraphs ID not set in preview

Created on 27 August 2025, about 1 month ago

Problem/Motivation

When needing to use paragraphs ID such as with a token, the ID is not set.

Steps to reproduce

Proposed resolution

In ParagraphsPreviewController.php, adding this after line 160 fixes it:

        // Preserve the original paragraph ID for token replacement.
        if ($paragraph->id()) {
          $paragraph_clone->set('id', $paragraph->id());
        }

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States j_s

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

Comments & Activities

Production build 0.71.5 2024