Install
Works with Drupal: ^9 || ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This release fixes an HTTP 500 error on pages whose parent menu item the current user cannot access.
Summary
When the active menu item has no children, the block shows the menu tree under that item's parent. If the current user could not access that parent, for example an unpublished node seen by an anonymous user, the menu built no items and the page failed with an HTTP 500 error. The block now renders nothing in that case. It also keeps the access cacheability of the menu tree, so it shows the parent again as soon as the parent becomes accessible, for example when the node is published again.
Contributors (5)
geinosky, lorir, sgeinosky, datvance, mably
Changelog
Issues: 1 issue resolved.
Changes since 1.3.0:
Bug
- #3500585 by geinosky, lorir, sgeinosky, datvance, mably: Parent menu items that require authentication to see cause the menu to break