diff --git a/configure/src/core/calls.js b/configure/src/core/calls.js index 6b5acad6..1399be75 100644 --- a/configure/src/core/calls.js +++ b/configure/src/core/calls.js @@ -1,7 +1,8 @@ -const domain = +let domain = window.mmgisglobal.NODE_ENV === "development" ? "http://localhost:8888/" - : (window.mmgisglobal.ROOT_PATH || "") + "/"; + : window.mmgisglobal.ROOT_PATH || ""; +if (domain.length > 0 && !domain.endsWith("/")) domain += "/"; const c = { missionPath: "Missions/",