From 54e6fd4c073d75dc5866fc1e5058f11b1614171e Mon Sep 17 00:00:00 2001 From: Timo <16718859+toger5@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:08:31 +0200 Subject: [PATCH] fix url by providin a last & (#1550) * fix url by prvidin a last & everything after the last & will be stripped away -> hence we loose the last param (usually confined to room...) -> going home kills the all the params which we need to fix! --------- Signed-off-by: Timo K --- src/room/AppSelectionModal.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/room/AppSelectionModal.tsx b/src/room/AppSelectionModal.tsx index 80e2871b..6a9172dc 100644 --- a/src/room/AppSelectionModal.tsx +++ b/src/room/AppSelectionModal.tsx @@ -63,7 +63,9 @@ export const AppSelectionModal: FC = ({ roomId }) => { }); const result = new URL("element://call"); - result.searchParams.set("url", url.toString()); + // Everything after the last & stripped away making us loose the last param. Most likely while removing the pwd. + // TODO fix the pwd removal function (or wherever this happens) to not delete everything after the last &. + result.searchParams.set("url", url.toString() + "&"); return result.toString(); }, [roomId, roomSharedKey]);