diff --git a/frontend/src/business/components/api/test/components/ApiScenarioForm.vue b/frontend/src/business/components/api/test/components/ApiScenarioForm.vue index fdc167dffd..ae4345a615 100644 --- a/frontend/src/business/components/api/test/components/ApiScenarioForm.vue +++ b/frontend/src/business/components/api/test/components/ApiScenarioForm.vue @@ -9,7 +9,7 @@ {{ $t('api_test.environment.environment_config') }} diff --git a/frontend/src/business/components/api/test/components/request/ApiHttpRequestForm.vue b/frontend/src/business/components/api/test/components/request/ApiHttpRequestForm.vue index c9a8353c5c..a2b6e16462 100644 --- a/frontend/src/business/components/api/test/components/request/ApiHttpRequestForm.vue +++ b/frontend/src/business/components/api/test/components/request/ApiHttpRequestForm.vue @@ -148,7 +148,7 @@ export default { if (!this.request.path) return; let url = this.getURL(this.displayUrl); let urlStr = url.origin + url.pathname; - let envUrl = this.request.environment.protocol + '://' + this.request.environment.socket; + let envUrl = this.request.environment.config.httpConfig.protocol + '://' + this.request.environment.config.httpConfig.socket; this.request.path = decodeURIComponent(urlStr.substring(envUrl.length, urlStr.length)); }, getURL(urlStr) { @@ -194,7 +194,8 @@ export default { return this.request.method !== "GET"; }, displayUrl() { - return this.request.environment ? this.request.environment.protocol + '://' + this.request.environment.socket + (this.request.path ? this.request.path : '') : ''; + return this.request.environment.config.httpConfig.socket ? this.request.environment.config.httpConfig.protocol + '://' + + this.request.environment.config.httpConfig.socket + (this.request.path ? this.request.path : '') : ''; } } }