Improve URL handling

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2023-08-10 15:19:43 +02:00
parent 8facf7808b
commit 5c3d8efebf
3 changed files with 10 additions and 17 deletions

View File

@@ -347,7 +347,7 @@ export function getRoomUrl(
roomIdOrAlias: string,
password: string = ""
): string {
password = password === "" ? "" : "#" + PASSWORD_STRING + password;
password = password === "" ? "" : "#?" + PASSWORD_STRING + password;
if (roomIdOrAlias.startsWith("#")) {
return `${window.location.protocol}//${window.location.host}/${