diff --git a/src/helpers/checkAndSetApiUrl.ts b/src/helpers/checkAndSetApiUrl.ts index d3496568e..611fff83a 100644 --- a/src/helpers/checkAndSetApiUrl.ts +++ b/src/helpers/checkAndSetApiUrl.ts @@ -7,6 +7,10 @@ export const ERROR_NO_API_URL = 'noApiUrlProvided' const updateConfig = () => store.dispatch('config/update') export const checkAndSetApiUrl = (url: string): Promise => { + if(url.startsWith('/')) { + url = window.location.host + url + } + // Check if the url has an http prefix if ( !url.startsWith('http://') &&