From 354c6e95d5f7591d7a002392800a8ed2e10f011d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 24 May 2018 16:27:56 +0200 Subject: [PATCH] Allow empty route for navigation entries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/private/NavigationManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index af6613759b..1c764f9c1f 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 {