Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Fixed #1098

Liyas Thomas6a55c0932880
diff --git a/pages/index.vue b/pages/index.vue
index 46c46f186..bfec7e08b 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -463,7 +463,7 @@
<input
:placeholder="$t('value_count', { count: index + 1 })"
:name="'value' + index"
- :value="param.value"
+ :value="decodeURI(param.value)"
@change="
$store.commit('setValueParams', {
index,
diff --git a/store/mutations.js b/store/mutations.js
index 1f637cd73..dfa4aa080 100644
--- a/store/mutations.js
+++ b/store/mutations.js
@@ -58,7 +58,7 @@ export default {
},
setValueParams({ request }, { index, value }) {
- request.params[index].value = value
+ request.params[index].value = encodeURI(value)
},
setTypeParams({ request }, { index, value }) {