Blocks don't display in node preview mode

Created on 11 October 2024, 2 months ago

Problem/Motivation

Blocks added to a content context that triggers on content type are not displayed when an editor clicks on the preview button while editing a node.

Steps to reproduce

1. Create a view block
2. Add that view block to a context, then limit that context to your content type.
3. Create a new node, hit the preview button. The block will not display.
4. View the published node, the block will display.

For the time being, we removed the block from context, instead adding the block using the normal core block placement interface. In the normal block interface, we limited the visibility to the content type. In this case the block DOES display in both the node and on the preview page.

My expectation would be that blocks loaded via context would act the same way.

πŸ’¬ Support request
Status

Active

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ed2908

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

Comments & Activities

Production build 0.71.5 2024