Explorar el Código

fixed generateCollaborationLink() (#1081)

Marcel Kloubert hace 5 años
padre
commit
12d7550958
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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> {