diff --git a/core/modules/book/src/BookManager.php b/core/modules/book/src/BookManager.php index 2e8a944..556350f 100644 --- a/core/modules/book/src/BookManager.php +++ b/core/modules/book/src/BookManager.php @@ -541,6 +541,7 @@ protected function buildItems(array $tree) { foreach ($tree as $data) { $element = []; + // Generally we only deal with visible links, but just in case. if (!$data['link']['access']) { continue; } diff --git a/core/themes/classy/templates/navigation/menu.html.twig b/core/themes/classy/templates/navigation/menu.html.twig index 3ebed26..aa6b469 100644 --- a/core/themes/classy/templates/navigation/menu.html.twig +++ b/core/themes/classy/templates/navigation/menu.html.twig @@ -44,7 +44,7 @@ {{ menus.menu_links(item.below, attributes, menu_level + 1) }} {% endif %} - {% endfor %} + {% endfor %} {% endif %} {% endmacro %}