diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/utils/getProjectServiceUrl.js b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/utils/getProjectServiceUrl.js index 0f7a3651e25..7d100421a26 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/utils/getProjectServiceUrl.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/utils/getProjectServiceUrl.js @@ -1,8 +1,12 @@ const getProjectServiceUrl = () => { // Access the globalConfigs object and retrieve the PROJECT_SEERVICE_PATH configuration. // If not defined, fallback to default URL `/health-project`. - const url = window.globalConfigs?.getConfig("PROJECT_SEERVICE_PATH") || `/health-project`; - + let url = window.globalConfigs?.getConfig("PROJECT_SERVICE_PATH") || `/health-project`; + console.log("url is: ", url); + if (!url.startsWith('/')) { + url = `/${url}`; + } + console.log("new url is:", url); // Return the constructed URL. return url; };