Tobias Skarhed 7 лет назад
Родитель
Сommit
762ee203fa
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      public/app/core/components/search/search_results.ts

+ 2 - 1
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');
     }
   }