Noindex markup Propagates to current node when referencing noindexed entities

Created on 21 October 2024, 2 months ago

Problem/Motivation

In this use case, a node may contain a view which displays a list of related entities. For instance, an article which has a "related articles" list in the sidebar.

Steps to reproduce

One of the displayed entities may, for reasons determined by the content manager, have the noindex setting set to true. At the same time, the current node has the noindex setting to false.

When inspecting the markup for the current page, we will see the noindex attribute. This despite the fact that the setting has been set to false.

Proposed resolution

Ensure that the noindex markup is only added for the current (route's) node in node_noindex_entity_view.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

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