'node' variable in page.html.twig is not available on preview node page

Created on 18 February 2023, almost 2 years ago
Updated 8 September 2023, over 1 year ago

Problem/Motivation

The node variable is provided by template_preprocess_page, but it's only available for the canonical page. This is prone to bugs. For example, in Umami the page title is displayed twice in the node preview page because of this.

Proposed resolution

Make node variable available in page.html.twig on the preview page.

Remaining tasks

User interface changes

Before

After

API changes

node variable is not available in page.html.twig on the preview pages like it is on canonical pages.

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Fixed

Version

9.5

Component
Themeย  โ†’

Last updated about 11 hours ago

Created by

๐Ÿ‡ซ๐Ÿ‡ฎFinland lauriii Finland

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Field UX

    Usability improvements related to the Field UI

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024