From 5be04942e733c8e862f81ab2b2ee81730f9aab3a Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Wed, 5 Aug 2020 17:50:20 +0200
Subject: [PATCH] Hide navigation links which dont lead anywhere (looking at
 you user status)

Signed-off-by: Joas Schilling <coding@schilljs.com>
---
 apps/settings/lib/Search/AppSearch.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/apps/settings/lib/Search/AppSearch.php b/apps/settings/lib/Search/AppSearch.php
index 7e977e42483..f06e060e9a4 100644
--- a/apps/settings/lib/Search/AppSearch.php
+++ b/apps/settings/lib/Search/AppSearch.php
@@ -87,6 +87,11 @@ class AppSearch implements IProvider {
 				continue;
 			}
 
+			if ($entry['href'] === '') {
+				// Nothing we can open, so ignore
+				continue;
+			}
+
 			$result[] = new SearchResultEntry(
 				'',
 				$entry['name'],
-- 
GitLab