Commit 987f1cc2 authored by Axel Dürkop's avatar Axel Dürkop
Browse files

Fix route

parent 7254ce49
......@@ -25,7 +25,8 @@ export default {
methods: {
changeLanguage(e) {
const lang = e.target.value;
const to = this.$router.resolve({ params: { lang } });
const query = this.$route.query;
const to = this.$router.resolve({ params: { lang }, query: query });
return Trans.changeLanguage(lang).then(() => {
this.$router.push(to.location);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment