Fix 12248

This commit is contained in:
Tobias Skarhed 2018-06-25 13:46:33 +02:00
parent e0ac31a28a
commit 762ee203fa

View File

@ -63,7 +63,8 @@ export class SearchResultsCtrl {
} }
onItemClick(item) { 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'); appEvents.emit('hide-dash-search');
} }
} }