'path-frontpage' class isn't applied when previewing a node

Created on 1 May 2018, over 6 years ago
Updated 31 January 2023, almost 2 years ago

I've stumbled upon this issue, when tried to preview a node, that is set to be frontpage.

Steps:
1. Have unique CSS style assigned to `path-frontpage` class. Ex:

.path-frontpage {
  background-color: blue;
}

2. Create a node, so you have a URL. Ex: /node/1
3. Set URL to be a frontpage.
4. Edit and preview the node.

Expectation:
Since this node is set to be a frontpage, any frontpage related styling must be applied, otherwise, the preview is deceptive.

Current behavior:
Class `path-frontpage` isn't assigned to a body tag during node preview. Hence no styling is applied.

🐛 Bug report
Status

Active

Version

10.1

Component
Markup 

Last updated about 2 months ago

No maintainer
Created by

🇰🇬Kyrgyzstan elaman

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