Merge pull request #9589 from nextcloud/bugfix/noid/allow-empty-route-navigation

Allow empty route for navigation entries
This commit is contained in:
Morris Jobke 2018-05-29 16:26:32 +02:00 committed by GitHub
commit 1924fed83e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ class NavigationManager implements INavigationManager {
$id = isset($nav['id']) ? $nav['id'] : $app;
$order = isset($nav['order']) ? $nav['order'] : 100;
$type = isset($nav['type']) ? $nav['type'] : 'link';
$route = $this->urlGenerator->linkToRoute($nav['route']);
$route = $nav['route'] !== '' ? $this->urlGenerator->linkToRoute($nav['route']) : '';
$icon = isset($nav['icon']) ? $nav['icon'] : 'app.svg';
foreach ([$icon, "$app.svg"] as $i) {
try {