diff --git a/client/src/app/shared/utils.ts b/client/src/app/shared/utils.ts index b43ae07dacaf2fa56684636c8b8478909c2ff2e2..0e013d5cbd0261e3736bc45b9b3e6288846901a8 100644 --- a/client/src/app/shared/utils.ts +++ b/client/src/app/shared/utils.ts @@ -9,7 +9,7 @@ export const getHost = (apiUrl: string): string => { if (!apiUrl.startsWith('http')) { const url = window.location; - return url.protocol + '//' + url.host + apiUrl; + return url.protocol + '//' + url.host + document.getElementsByTagName('base')[0].getAttribute('href') + apiUrl; } return apiUrl; }