From a2030f37d9d28eabe87daed88b87bdd89d83268e Mon Sep 17 00:00:00 2001
From: Henrik Askjer <henrik.askjer@uib.no>
Date: Wed, 12 Jan 2022 14:08:54 +0100
Subject: [PATCH] fix history bug

---
 src/components/DictionaryView.vue | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue
index fac1dab8..de4dd724 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()
             })
           }
-- 
GitLab