From 762ee203fa99986ec9b0180a3342cbd4a33d8156 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed Date: Mon, 25 Jun 2018 13:46:33 +0200 Subject: [PATCH] Fix 12248 --- public/app/core/components/search/search_results.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/core/components/search/search_results.ts b/public/app/core/components/search/search_results.ts index 273af224660..35ee1365e22 100644 --- a/public/app/core/components/search/search_results.ts +++ b/public/app/core/components/search/search_results.ts @@ -63,7 +63,8 @@ export class SearchResultsCtrl { } onItemClick(item) { - if (this.$location.path().indexOf(item.url) > -1) { + //Check if one string can be found in the other + if (this.$location.path().indexOf(item.url) > -1 || item.url.indexOf(this.$location.path()) > -1) { appEvents.emit('hide-dash-search'); } }