From 60fadec3a1cec4edfb088853ab1d05c6ba3d5a5d Mon Sep 17 00:00:00 2001 From: Janis Streib <me@janis-streib.de> Date: Thu, 19 Nov 2020 18:20:37 +0100 Subject: [PATCH] FIX avoid redundant navigation in search --- frontend/src/components/GlobalSearch.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/GlobalSearch.vue b/frontend/src/components/GlobalSearch.vue index d25ee0e37..c3817fae7 100644 --- a/frontend/src/components/GlobalSearch.vue +++ b/frontend/src/components/GlobalSearch.vue @@ -383,7 +383,9 @@ export default { if (e.ctrlKey) { window.open(this.$router.resolve(suggestion.url).href, '_blank') } else { - this.$router.push(suggestion.url) + if (this.$router.currentRoute.path !== suggestion.url) { + this.$router.push(suggestion.url) + } } } if (suggestion.type === 'test') { -- GitLab