diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 9493f442664668d1d0de90c161d61f5de4268918..26a4052d8f08c1114d0effda8989684274ccc5b9 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -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() {