diff --git a/Menu/Factory/MenuDecorator.php b/Menu/Factory/MenuDecorator.php index f9ea5adba..26daebb94 100644 --- a/Menu/Factory/MenuDecorator.php +++ b/Menu/Factory/MenuDecorator.php @@ -56,8 +56,11 @@ public function buildItem(ItemInterface $item, array $options) } if ($options['dropdown']) { + if ($item->getUri() == "") { + $item->setUri('#'); + } + $item - ->setUri('#') ->setAttribute('class', trim('dropdown '.$item->getAttribute('class'))) ->setLinkAttribute('class', 'dropdown-toggle') ->setLinkAttribute('data-toggle', 'dropdown')