Explorar o código

fixed generateCollaborationLink() (#1081)

Marcel Kloubert %!s(int64=5) %!d(string=hai) anos
pai
achega
12d7550958
Modificáronse 1 ficheiros con 1 adicións e 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> {