diff --git a/webapp/components/generic/SearchableInput/SearchableInput.vue b/webapp/components/generic/SearchableInput/SearchableInput.vue index b448f941c..fb1b4999f 100644 --- a/webapp/components/generic/SearchableInput/SearchableInput.vue +++ b/webapp/components/generic/SearchableInput/SearchableInput.vue @@ -100,25 +100,10 @@ export default { }, this.delay) }, onEnter(event) { - - if (this.$router.history.current.path === '/search/search-results') { - this.$store.commit('search/SET_VALUE', { - searchValue: this.unprocessedSearchInput, - }) - - this.$router.replace({ - path: '/search/search-results', - query: { item: this.unprocessedSearchInput }, - }) - this.clear() - } else { - if (this.options.length === 0 ) return - this.$router.replace({ - path: '/search/search-results', - query: { item: this.unprocessedSearchInput }, - }) - this.clear() - } + this.$router.push({ + path: '/search/search-results', + query: { item: this.unprocessedSearchInput }, + }) }, onDelete(event) { clearTimeout(this.searchProcess) diff --git a/webapp/pages/search/search-results.vue b/webapp/pages/search/search-results.vue index ba47dba31..6e82bbfb6 100644 --- a/webapp/pages/search/search-results.vue +++ b/webapp/pages/search/search-results.vue @@ -1,15 +1,15 @@