diff --git a/ApiTestManager/src/APIClient.js b/ApiTestManager/src/APIClient.js index 8f503a0..84d5846 100644 --- a/ApiTestManager/src/APIClient.js +++ b/ApiTestManager/src/APIClient.js @@ -15,9 +15,14 @@ class APIClient { this.variables = {}; this.abortController = null; this.contextPath = document.querySelector('meta[name="context-path"]').getAttribute('content'); + if (!this.contextPath) { this.contextPath = '/'; } + + if (!this.contextPath.endsWith('/')) { + this.contextPath += '/'; + } } getClientUrl() {