diff --git a/frontend/src/helpers/checkAndSetApiUrl.ts b/frontend/src/helpers/checkAndSetApiUrl.ts index b60886b50..278f97a08 100644 --- a/frontend/src/helpers/checkAndSetApiUrl.ts +++ b/frontend/src/helpers/checkAndSetApiUrl.ts @@ -46,7 +46,7 @@ export const checkAndSetApiUrl = (pUrl: string | undefined | null): Promise { // Check if it is reachable at /api/v1 and https - urlToCheck.pathname = origUrlToCheck.pathname + urlToCheck.pathname = origPathname if ( !urlToCheck.pathname.endsWith('/api/v1') && !urlToCheck.pathname.endsWith('/api/v1/') @@ -92,7 +92,7 @@ export const checkAndSetApiUrl = (pUrl: string | undefined | null): Promise { // Check if it is reachable at :API_DEFAULT_PORT and /api/v1 - urlToCheck.pathname = origUrlToCheck.pathname + urlToCheck.pathname = origPathname if ( !urlToCheck.pathname.endsWith('/api/v1') && !urlToCheck.pathname.endsWith('/api/v1/')