diff --git a/src/services/talkService.ts b/src/services/talkService.ts index f3c6368b82..3a593a727d 100644 --- a/src/services/talkService.ts +++ b/src/services/talkService.ts @@ -336,7 +336,7 @@ export async function updateRoomParticipantsFromEvent(eventComponent: object): P */ async function transceiveGet(path: string, params?: TRequest): Promise { const apiVersion = loadState('calendar', 'talk_api_version') - const url = generateOcsUrl('/apps/spreed/api/{apiVersion}/{path}', { apiVersion, path }) + const url = generateOcsUrl('/apps/spreed/api/{apiVersion}', { apiVersion }) + `/${path}` let response: AxiosResponse try { @@ -397,7 +397,7 @@ async function transceiveGet(pat */ async function transceivePost(path: string, data: TRequest): Promise { const apiVersion = loadState('calendar', 'talk_api_version') - const url = generateOcsUrl('/apps/spreed/api/{apiVersion}/{path}', { apiVersion, path }) + const url = generateOcsUrl('/apps/spreed/api/{apiVersion}', { apiVersion }) + `/${path}` let response: AxiosResponse try {