diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index fac1dab8efb5918cb690dbf557263c4077636b68..de4dd724c0338c5715b40bd8b5cbb8c2a470bfae 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -230,7 +230,8 @@ function navigate_to_query(self, word) { api.get('suggest?', {params}) .then((response) => { self.similar = response.data.a.similar - console.log("SIMILAR", response)}) + self.replace_history() + }) } } @@ -238,7 +239,6 @@ function navigate_to_query(self, word) { self.waiting_for_articles = false self.no_results = true self.replace_history() // fixes routing bug when going back from suggested search - } else { @@ -250,7 +250,6 @@ function navigate_to_query(self, word) { .then(() => { self.waiting_for_articles = false self.$store.commit('setSearchRoute', self.$route.fullPath) - self.replace_history() }) }