diff --git a/apps/portal/src/lib/api/runtime/client.ts b/apps/portal/src/lib/api/runtime/client.ts index aefda618..d71f33ae 100644 --- a/apps/portal/src/lib/api/runtime/client.ts +++ b/apps/portal/src/lib/api/runtime/client.ts @@ -284,7 +284,8 @@ export function createClient(options: CreateClientOptions = {}): ApiClient { opts: RequestOptions = {} ): Promise> => { const resolvedPath = applyPathParams(path, opts.params?.path); - const url = new URL(resolvedPath, baseUrl); + const normalizedPath = normalizeApiPath(resolvedPath); + const url = new URL(normalizedPath, baseUrl); const queryString = buildQueryString(opts.params?.query); if (queryString) {