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

Fix language switching on search

parent 40d47f01
No related branches found
No related tags found
No related merge requests found
......@@ -280,9 +280,12 @@ export default {
},
update_lang_form: function (lang) {
this.lang = lang
if (! this.article) {
if(this.$route.name == 'word') {
navigate_to_word(this, this.$route.params.word)
}
else if (this.$route.name == 'search') {
navigate_to_search(this, this.$route.params.query)
}
},
article_link_click: function(item) {
if (this.article && this.article.article_id == item.article_id){
......
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