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 <toger5@hotmail.de>
This commit is contained in:
Timo
2023-09-20 14:08:31 +02:00
committed by GitHub
parent 393eeabfa8
commit 54e6fd4c07

View File

@@ -63,7 +63,9 @@ export const AppSelectionModal: FC<Props> = ({ 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]);