Skip to content

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

:bug: Fixes #417

Liyas Thomase2d7c0225e04
diff --git a/pages/index.vue b/pages/index.vue
index 40190ad0f..6c431f6f6 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1847,12 +1847,16 @@ export default {
? [flat("rawParams")]
: [deep("bodyParams")];
- this.$router.replace(
+ history.replaceState(
+ window.location.href,
+ "",
"/?" +
- flats
- .concat(deeps, bodyParams)
- .join("")
- .slice(0, -1)
+ encodeURIComponent(
+ flats
+ .concat(deeps, bodyParams)
+ .join("")
+ .slice(0, -1)
+ )
);
},
setRouteQueries(queries) {