Skip to content

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

feat: support custom router base property - fixed #1561

Liyas Thomas56982effcd42
diff --git a/pages/index.vue b/pages/index.vue
index a73c4c058..44152ff8a 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1635,7 +1635,9 @@ export default {
history.replaceState(
window.location.href,
"",
- `/?${encodeURI(flats.concat(deeps, bodyParams).join("").slice(0, -1))}`
+ `${this.$router.options.base}?${encodeURI(
+ flats.concat(deeps, bodyParams).join("").slice(0, -1)
+ )}`
)
},
setRouteQueries(queries) {