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

fix history bugs

parent 3feffe4c
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ function navigate_to_article(self, source) {
})
.then(function(response){
self.waiting_for_articles = false
this.replace_history()
self.replace_history()
if (source) {
self.$plausible.trackEvent('internal link incoming', {props: {origin: source}})
}
......@@ -273,16 +273,18 @@ export default {
},
methods: {
replace_history: function() {
history.replaceState({article: this.article,
search_results: {},
lang: this.lang,
error: null,
scope: this.scope,
article_info: this.article_info,
page: this.page,
perPage: this.perPage,
selected: this.selected,
inflection_suggestions: this.inflection_suggestions}, '')
history.replaceState({article: this.article,
search_results: this.search_results,
lang: this.lang,
error: this.error,
pos_selected: this.pos_selected,
scope: this.scope,
article_info: this.article_info,
page: this.page,
perPage: this.perPage,
selected: this.selected,
inflection_suggestions: this.inflection_suggestions}, '')
},
total_results: function() {
......
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