A block isn't displayed in the node Preview mode

Created on 13 December 2021, about 3 years ago
Updated 2 April 2023, almost 2 years ago

Problem/Motivation

A block based on a node's taxonomy term isn't displayed in the Preview mode.

Steps to reproduce

  1. Create a page
  2. Add a block based on a node's taxonomy term on that page
  3. Edit the page and press the Preview button. The block isn't shown.

Proposed resolution

In the /term_condition/src/Plugin/Condition/Term.php fix \Drupal::routeMatch() by providing an additional parameter for the node preview.

Remaining tasks

Needs review.

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇿New Zealand tatianag

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024