diff --git a/WebContent/js/utilities/urlUtils.js b/WebContent/js/utilities/urlUtils.js index 9dca9d8..13055b8 100644 --- a/WebContent/js/utilities/urlUtils.js +++ b/WebContent/js/utilities/urlUtils.js @@ -26,9 +26,9 @@ const ZOSMF_PREFIX_LENGTH = 6; export function atlasAction(endpoint, content) { // In v3, /ibmzosmf/api/v1 endpoint removes /zosmf part of a /zosmf URL, so string must be trimmed. - endpoint = endpoint.substring(ZOSMF_PREFIX_LENGTH); + let trimmedEndpoint = endpoint.substring(ZOSMF_PREFIX_LENGTH); - return fetch(`https://${whichServer()}/ibmzosmf/api/v1/zosmf${endpoint}`, content); + return fetch(`https://${whichServer()}/ibmzosmf/api/v1/zosmf${trimmedEndpoint}`, content); } export function atlasGet(endpoint) {