diff --git a/src/data/index.ts b/src/data/index.ts index 69ffed243..3284dcd11 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 {