Skip to content
Snippets Groups Projects
Commit a2030f37 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

fix history bug

parent 9dbda3d3
No related branches found
No related tags found
No related merge requests found
......@@ -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()
})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment