From a8ec02b7731df5e29ba1453bdcd97a87ef3177cf Mon Sep 17 00:00:00 2001 From: Timo K Date: Wed, 20 Sep 2023 16:19:44 +0200 Subject: [PATCH] dont ignore rest of url Signed-off-by: Timo K --- src/e2ee/sharedKeyManagement.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e2ee/sharedKeyManagement.ts b/src/e2ee/sharedKeyManagement.ts index 2af0b463..e22d3269 100644 --- a/src/e2ee/sharedKeyManagement.ts +++ b/src/e2ee/sharedKeyManagement.ts @@ -59,7 +59,7 @@ export const useManageRoomSharedKey = (roomId: string): string | null => { if (password !== e2eeSharedKey) return; const [hashStart, passwordStart] = hash.split(PASSWORD_STRING); - const hashEnd = passwordStart.split("&")[1]; + const hashEnd = passwordStart.split("&").slice(1).join("&"); location.replace((hashStart ?? "") + (hashEnd ?? "")); }, [password, e2eeSharedKey]);