Skip to content
Snippets Groups Projects
Commit 19b413f0 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

re meta#318 sortering på homografnummer feilet

parent d737aa19
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ export default {
if(event.articles){
let source = '/' + this.lang + '/w/' + event.word
this.$router.push(source)
this.search_results = event.articles.sort(compare_by_hgno(event.word)).map(a => Object.assign(a, {source: source}))
this.search_results = event.articles.sort(compare_by_hgno(decodeURIComponent(event.word))).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}, '')
......
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