From 2942e9c78e7c3c45ff3ab492e59ed7f3a955a23f Mon Sep 17 00:00:00 2001 From: amplitudes <62763456+amplitudesxd@users.noreply.github.com> Date: Sun, 30 Apr 2023 04:36:23 +0100 Subject: [PATCH] Return window origin instead of host (#5276) --- app/utils/routeHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =