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

fix language switching bug

parent c37cf527
No related branches found
No related tags found
No related merge requests found
......@@ -132,9 +132,13 @@
update_lang_form(lang) {
this.$emit('update-lang-form', lang)
// Submit if switching on front page
if (this.search && !this.items[0]) {
if (this.search && this.search!=this.$route.query.q && !this.items[0]) {
this.submit({q: this.search, match: this.search, time: Date.now()})
}
else {
this.$parent.reload_params()
}
},
get_lang() {
return this.$parent.lang
......
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