Block title displayed rather than menu parent

Created on 10 May 2021, about 4 years ago
Updated 9 April 2025, about 1 month ago

Problem/Motivation

The block title shows the incorrect menu item title.

Steps to reproduce

  1. Enable the latest dev release 8.x-1.x-dev.
  2. Create a basic page listed in the main navigation menu.
  3. Create another basic page with the above page's menu item as its parent.
  4. Place a Main Navigation block in sidebar first with
    • initial visibility level set to 2, and
    • block title as menu link parent enabled.

When you visit the both the parent and the child nodes, the title of the menu block should be the parent menu item.

This works as expected in 8.x-1.2.

When you visit the child node, the title correctly shows the parent menu item title. However, when you visit the parent node, the title shows the block title rather than the parent menu item.

Proposed resolution

This bug seems to have been introduced by the recent fix to D9: Untrusted callback exception.

Adjustments to this logic may be necessary.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jcandan

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

Merge Requests

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