diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-05-29 16:26:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-29 16:26:32 +0200 |
commit | 1924fed83ef9d18c087f4c4321f67c5a0128696c (patch) | |
tree | 5aeabe22fb3537ea813ff8d74aebac0ef90341a8 /lib | |
parent | e37b77fa287f632e6f39d27d4fca62d3affc53ec (diff) | |
parent | 354c6e95d5f7591d7a002392800a8ed2e10f011d (diff) | |
download | nextcloud-server-1924fed83ef9d18c087f4c4321f67c5a0128696c.tar.gz nextcloud-server-1924fed83ef9d18c087f4c4321f67c5a0128696c.zip |
Merge pull request #9589 from nextcloud/bugfix/noid/allow-empty-route-navigation
Allow empty route for navigation entries
Diffstat (limited to 'lib')
-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 { |