From 12d7550958a3dee8c39f148c88f2c73dbd6fc7f9 Mon Sep 17 00:00:00 2001 From: Marcel Kloubert <41436235+mkloubertego@users.noreply.github.com> Date: Wed, 25 Mar 2020 16:18:22 +0100 Subject: [PATCH] fixed generateCollaborationLink() (#1081) --- src/data/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/index.ts b/src/data/index.ts index 69ffed24..3284dcd1 100644 --- a/src/data/index.ts +++ b/src/data/index.ts @@ -96,7 +96,7 @@ export function getCollaborationLinkData(link: string) { export async function generateCollaborationLink() { const id = await generateRandomID(); const key = await generateEncryptionKey(); - return `${window.location.origin}#room=${id},${key}`; + return `${window.location.origin}${window.location.pathname}#room=${id},${key}`; } async function getImportedKey(key: string, usage: string): Promise {