diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index d5881543ae08aa1a0cdcc6bf566c71a01575a814..7a30a81d2dbf69279075213d31081b1b2d1cf4d3 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -203,12 +203,14 @@ export default { select_result: function(event) { this.event = event if(event.articles){ - let source = '/' + this.lang + '/w/' + event.word + let source = '/' + this.lang + '/w/' + event.match this.$router.push(source) this.search_results = event.articles.map(a => Object.assign(a, {source: source})) this.article = null this.error = null history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang, error: this.error}, '') + // Attempt at fixing issue with page not updating + navigate_to_word(this, event.match) this.$plausible.trackEvent('dropdown selection', {props: {query: event.label, match: event.match}}) }else{ this.waiting_for_articles = true