mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix 12248
This commit is contained in:
parent
e0ac31a28a
commit
762ee203fa
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user