Share links do not appear in Layout builder

Created on 26 June 2025, about 1 month ago

Problem/Motivation

In a site with Layout builder, when I add a block that has a paragraph field with an addtoany field, the component does not appear.

Steps to reproduce

  1. Configure a content type to use layout builder.
  2. Create a paragraph type with an AddToAny field.
  3. Create a block type with a paragraph's field using the paragraph type.
  4. Create content, and in layout section, add this type of block.

The share links won't appear after following these steps.

Proposed resolution

The problem is that the addtoany_entity_view exits when the entity does not have an ID. It is correct except in layout builder view, as layout blocks are not saved as an entity, but serialized in the layout builder data of the node.

The solution proposed is not avoiding the rendering when a layout builder display is being processed.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇪🇸Spain omarlopesino

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024