Initial Visibility Level not Honoured

Created on 29 August 2024, 3 months ago

Problem/Motivation

Drupal version: 10.3.2
Menu Block version: 8.x-1.13

I have the following menu items

  • Patient Care
  • People
  • Research & Labs
  • Education
    • Residency
      • Training Overview
      • Current Residents
      • Requirements
      • Mentorship
        • Program Details
  • About

I've configured my menu block as follows (see attached screenshot)

- Initial visibility level = 3 (don't show on levels 1 or 2)
- Number of levels to display = 2 (only show levels 3 and 4)
- Render parent item = yes (want to see the 2nd level parent item when viewing levels 3 and 4)
- Hide on pages not included in menu = yes

The menu is being displayed on the 2nd level (on the Residency page). Even if I turn off the setting to render the parent the menu still shows up on pages with menu items on the second level. The only way I can get around this is exempting pages from the block display by URL but this isn't ideal.

I'll dig into the code to try to debug what is going on as soon as I have time.

🐛 Bug report
Status

Active

Version

1.13

Component

Code

Created by

🇨🇦Canada JayDarnell Guelph, Ontario

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

Comments & Activities

Production build 0.71.5 2024