diff --git a/frontend/src/pages/Settings/components/index.tsx b/frontend/src/pages/Settings/components/index.tsx index 437e6948d..80c77f584 100644 --- a/frontend/src/pages/Settings/components/index.tsx +++ b/frontend/src/pages/Settings/components/index.tsx @@ -18,10 +18,16 @@ export const URLTestButton: FunctionComponent<{ const click = useCallback(() => { if (address && apikey && ssl !== null) { let testUrl: string; + + let baseUrl = url; + if (baseUrl && baseUrl.startsWith("/") === false) { + baseUrl = "/" + baseUrl; + } + if (port) { - testUrl = `${address}:${port}${url ?? ""}`; + testUrl = `${address}:${port}${baseUrl ?? ""}`; } else { - testUrl = `${address}${url ?? ""}`; + testUrl = `${address}${baseUrl ?? ""}`; } const request = { protocol: ssl ? "https" : "http",