From dbca91f0c367929ac14e74d0b44f950944da6868 Mon Sep 17 00:00:00 2001 From: juancarmore Date: Tue, 10 Feb 2026 11:17:46 +0100 Subject: [PATCH] backend: update base URL construction in MeetRoomHelper to use getBasePath utility --- meet-ce/backend/src/helpers/room.helper.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meet-ce/backend/src/helpers/room.helper.ts b/meet-ce/backend/src/helpers/room.helper.ts index 2b5c865e..34bed464 100644 --- a/meet-ce/backend/src/helpers/room.helper.ts +++ b/meet-ce/backend/src/helpers/room.helper.ts @@ -10,6 +10,7 @@ import { } from '@openvidu-meet/typings'; import { INTERNAL_CONFIG } from '../config/internal-config.js'; import { MEET_ENV } from '../environment.js'; +import { getBasePath } from '../utils/html-injection.utils.js'; export class MeetRoomHelper { private constructor() { @@ -178,7 +179,10 @@ export class MeetRoomHelper { const collapsedRoom = { ...room }; const { roomId } = room; - const baseUrl = `${INTERNAL_CONFIG.API_BASE_PATH_V1}/rooms/${roomId}`; + + // Append the base path (without trailing slash) + const basePath = getBasePath().slice(0, -1); + const baseUrl = `${basePath}${INTERNAL_CONFIG.API_BASE_PATH_V1}/rooms/${roomId}`; existingProps.forEach((prop) => { // eslint-disable-next-line @typescript-eslint/no-explicit-any