Skip to content

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

Fix #271 Duplicated query string

RifqiAlAbqaryd3d3cda758be
diff --git a/pages/index.vue b/pages/index.vue
index 345c82160..1593eba62 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1030,7 +1030,7 @@ export default {
this.method +
"', '" +
this.url +
- this.path +
+ this.pathName +
this.queryString +
"', true, " +
user +
@@ -1077,7 +1077,7 @@ export default {
var requestString = [];
var headers = [];
requestString.push(
- 'fetch("' + this.url + this.path + this.queryString + '", {\n'
+ 'fetch("' + this.url + this.pathName + this.queryString + '", {\n'
);
requestString.push(' method: "' + this.method + '",\n');
if (this.auth === "Basic") {
@@ -1126,7 +1126,7 @@ export default {
var requestString = [];
requestString.push("curl -X " + this.method + " \\\n");
requestString.push(
- " '" + this.url + this.path + this.queryString + "' \\\n"
+ " '" + this.url + this.pathName + this.queryString + "' \\\n"
);
if (this.auth === "Basic") {
var basic = this.httpUser + ":" + this.httpPassword;