From 607e1b7b43aac502e9ca1c790fe9370eaf298573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Thu, 6 Jul 2023 12:02:39 +0200 Subject: [PATCH] Fix `getRoomUrl()` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/matrix-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix-utils.ts b/src/matrix-utils.ts index 85a7b313..3bef9e40 100644 --- a/src/matrix-utils.ts +++ b/src/matrix-utils.ts @@ -350,7 +350,7 @@ export function getRoomUrl(roomIdOrAlias: string): string { roomIdOrAlias.substring(1).split(":")[0] }`; } else { - return `${window.location.protocol}//${window.location.host}?roomId=${roomIdOrAlias}`; + return `${window.location.protocol}//${window.location.host}/room?roomId=${roomIdOrAlias}`; } }