Return window origin instead of host (#5276)

This commit is contained in:
amplitudes
2023-04-30 04:36:23 +01:00
committed by GitHub
parent 4b810bcdb7
commit 2942e9c78e

View File

@@ -136,7 +136,7 @@ export function sharedDocumentPath(shareId: string, docPath?: string) {
}
export function urlify(path: string): string {
return `${window.location.host}${path}`;
return `${window.location.origin}${path}`;
}
export const matchDocumentSlug =