dont ignore rest of url

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2023-09-20 16:19:44 +02:00
parent 4842b2a89b
commit a8ec02b773

View File

@@ -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]);