Mercurial > gemma
diff client/src/components/map/Map.vue @ 4426:a769e14f4baf
fix typo, encodeURIComponent only for username
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 18 Sep 2019 16:11:43 +0200 |
parents | 562f9da8ba0b |
children | 69166db6ba8a |
line wrap: on
line diff
--- a/client/src/components/map/Map.vue Wed Sep 18 16:04:01 2019 +0200 +++ b/client/src/components/map/Map.vue Wed Sep 18 16:11:43 2019 +0200 @@ -187,7 +187,7 @@ if (this.initialLoad) { this.$store.commit("map/initialLoad", false); var currentUser = this.$store.state.user.user; - HTTP.get(encodeURIComponent(`/users/${currentUser}`), { + HTTP.get("/users/" + encodeURIComponent(`${currentUser}`), { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8"