diff --git a/src/Menu.php b/src/Menu.php index 959d9bd..f7d8882 100644 --- a/src/Menu.php +++ b/src/Menu.php @@ -38,7 +38,7 @@ public function all() $sidebar = $this->get('sidebar'); $items = $sidebar->all()->map(function (Item $item) { - $item->data('is-parent', $item->hasChildren()); + $item->data('is-parent', $item->hasChildren() || (!$item->hasChildren() && !$item->link->path['url'])); return $item; });