When needing to use paragraphs ID such as with a token, the ID is not set.
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());
}
Active
1.0
Code