diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-05-24 16:27:56 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-05-24 16:28:05 +0200 |
commit | 354c6e95d5f7591d7a002392800a8ed2e10f011d (patch) | |
tree | 180f622770925d825187f68774a0d83a81063539 /lib/private/NavigationManager.php | |
parent | fd4a7bf72a0c8a69325b1d63e6983021ac6651f8 (diff) | |
download | nextcloud-server-354c6e95d5f7591d7a002392800a8ed2e10f011d.tar.gz nextcloud-server-354c6e95d5f7591d7a002392800a8ed2e10f011d.zip |
Allow empty route for navigation entries
Navigation entries might be handled by javascript, as the about section
from https://github.com/nextcloud/firstrunwizard/pull/64 so we don't
need a route for that.
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/NavigationManager.php')
-rw-r--r-- | lib/private/NavigationManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index af6613759b3..1c764f9c1ff 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -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 { |