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

Attempt at fixing update bug

parent 30a4af45
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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