diff --git a/src/components/search/search.js b/src/components/search/search.js index 4029245b..333f9294 100644 --- a/src/components/search/search.js +++ b/src/components/search/search.js @@ -95,8 +95,14 @@ const Search = { }, methods: { newQuery (query) { - this.$router.push({ name: 'search', query: { query } }) - this.$refs.searchInput.focus() + if (this.lastQuery === query) { + // Handle search retries + this.lastQuery = "" // invalidate state + this.search(query) + } else { + this.$router.push({ name: 'search', query: { query } }) + this.$refs.searchInput.focus() + } }, async search (query, searchType = null) { if (!query) {