Return window origin instead of host (#5276)
This commit is contained in:
@@ -136,7 +136,7 @@ export function sharedDocumentPath(shareId: string, docPath?: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function urlify(path: string): string {
|
export function urlify(path: string): string {
|
||||||
return `${window.location.host}${path}`;
|
return `${window.location.origin}${path}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const matchDocumentSlug =
|
export const matchDocumentSlug =
|
||||||
|
|||||||
Reference in New Issue
Block a user