Parcourir la source

fixed generateCollaborationLink() (#1081)

Marcel Kloubert il y a 5 ans
Parent
commit
12d7550958
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/data/index.ts

+ 1 - 1
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<CryptoKey> {