Skip to content
Snippets Groups Projects
Verified Commit 2484bec3 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix query string handling to work with special characters

parent 0608304e
No related branches found
No related tags found
2 merge requests!1123Resolve "Finalise Vuetify app as SPA",!1066Translations update from Weblate
......@@ -27,11 +27,11 @@ export default {
},
computed: {
queryString() {
let qs = "";
for (let queryObject in this.$route.query) {
qs += `${qs === "" ? "?" : "&"}${queryObject}=${this.$route.query[queryObject]}`;
let qs = [];
for (const { param, value } of this.$route.query) {
qs.push(`${param}=${encodeURIComponent(value)}`);
};
return qs
return "?" + qs.join("&");
},
},
methods: {
......
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