diff --git a/app/utils/routeHelpers.ts b/app/utils/routeHelpers.ts index 3cb5c1dc8..b9dfb5726 100644 --- a/app/utils/routeHelpers.ts +++ b/app/utils/routeHelpers.ts @@ -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 =