"Not node type" not working in preview mode

Created on 5 February 2024, 5 months ago

Problem/Motivation

We have a block configured so that it doesn't display on a particular node type. It works after saving the node and viewing the page. However the block is displayed when previewing the node.

Proposed resolution

I haven't dug too deeply into the code but I imagine we need to account for \Drupal::routeMatch()->getParameter('node_preview').

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States joncjordan Colorado Springs, CO

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

Comments & Activities

Production build 0.69.0 2024