diff --git a/frontend/src/business/components/api/test/components/environment/EnvironmentHttpConfig.vue b/frontend/src/business/components/api/test/components/environment/EnvironmentHttpConfig.vue index 2d7f3e4967..00f39b75e2 100644 --- a/frontend/src/business/components/api/test/components/environment/EnvironmentHttpConfig.vue +++ b/frontend/src/business/components/api/test/components/environment/EnvironmentHttpConfig.vue @@ -58,10 +58,11 @@ this.httpConfig.domain = decodeURIComponent(url.hostname); this.httpConfig.port = url.port; + let path = url.pathname === '/' ? '' : url.pathname; if (url.port) { - this.httpConfig.socket = this.httpConfig.domain + ':' + url.port + url.pathname; + this.httpConfig.socket = this.httpConfig.domain + ':' + url.port + path; } else { - this.httpConfig.socket = this.httpConfig.domain + url.pathname; + this.httpConfig.socket = this.httpConfig.domain + path; } return true; },