Module fails when not a node

Created on 20 April 2022, over 2 years ago
Updated 4 May 2023, over 1 year ago

Problem/Motivation

When the page is composed from anything but a node (which became a different beast in 9 than it was in 7) and there's no nid to query, the class reads

page-node-

Steps to reproduce

Open f.e. a taxonomy page and look up <body class="

Proposed resolution

Query the nid and check if empty before adding a class to the body tag.

Hope this helps,

Norbert

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇦🇹Austria nofue

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