Skip to content

Commit

Permalink
use generated route instead of plain route in nav items
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark committed May 19, 2017
1 parent 448bec9 commit ebe4154
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Menu/Provider/GroupMenuProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ public function get($name, array $options = array())
$menuItem->setExtra('on_top', $group['on_top']);
$menuItem->setUri($options);
} else {
$menuItem->setUri($item['route']);
$router = $this->pool->getContainer()->get('router');
$menuItem->setUri($router->generate($item['route']));
}
}
}
Expand Down

0 comments on commit ebe4154

Please sign in to comment.