diff --git a/src/services/ProfileApiService.js b/src/services/ProfileApiService.js index 3d7ccb0..75295f0 100644 --- a/src/services/ProfileApiService.js +++ b/src/services/ProfileApiService.js @@ -116,7 +116,7 @@ function transformCertificateData(data) { transformedData.push({ ...camelCaseObject(cert), certificateType: CERTIFICATE_TYPES[cert.certificate_type], - downloadUrl: `${configuration.LMS_BASE_URL}${cert.download_url}`, + downloadUrl: new URL(cert.download_url, configuration.LMS_BASE_URL).toString(), }); }); return transformedData;