Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Use includes() to check for existence
jamesgeorge007e6387c694e98
diff --git a/pages/index.vue b/pages/index.vueindex 2b2c95f52..741da63b7 100644--- a/pages/index.vue+++ b/pages/index.vue@@ -517,7 +517,7 @@value}) => `${key}=${value}`).join('&')queryString = queryString === '' ? '' : `?${queryString}`- if(path.indexOf('?') !== -1) {+ if(path.includes('?')) {path = path.slice(0, path.indexOf('?')) + queryString;} else {path = path + queryString