diff --git a/src/configuration/api/api.configuration.ts b/src/configuration/api/api.configuration.ts index 67d2d90b..e3e10a83 100644 --- a/src/configuration/api/api.configuration.ts +++ b/src/configuration/api/api.configuration.ts @@ -2,7 +2,7 @@ export const API = { FILE_UPLOAD: "/api/v3/file/upload/school/SCHOOLID/boardnodes/CONTEXTID", FILE_DELETE: "/api/v3/file/delete/FILERECORD_ID", FILE_RESTORE: "/api/v3/file/restore/FILERECORD_ID", - LOGIN_REDIRECT: "/login?redirect=/tldraw?roomName=ROOMID", + LOGIN_REDIRECT: "/login?redirect=/tldraw?parentId=ROOMID", USER_DATA: `/api/v3/user/me`, ENV_CONFIG: `/api/v3/config/public`, }; diff --git a/src/utils/connectionOptions.ts b/src/utils/connectionOptions.ts index 59754d6b..4254c7f0 100644 --- a/src/utils/connectionOptions.ts +++ b/src/utils/connectionOptions.ts @@ -32,7 +32,7 @@ const getConnectionOptions = async (): Promise<{ const getParentId = () => { const urlParams = new URLSearchParams(window.location.search); - const parentId = urlParams.get("roomName") ?? ""; + const parentId = urlParams.get("parentId") ?? ""; validateId(parentId); diff --git a/src/utils/redirectUtils.ts b/src/utils/redirectUtils.ts index dc476a1d..ead2886c 100644 --- a/src/utils/redirectUtils.ts +++ b/src/utils/redirectUtils.ts @@ -12,7 +12,7 @@ const redirectToLoginPage = () => { window.location.assign(redirectUrl); } else { window.location.assign( - `http://localhost:4000/login?redirect=tldraw?roomName=${parentId}`, + `http://localhost:4000/login?redirect=tldraw?parentId=${parentId}`, ); } };