fix: Link on 'Not Found' page for root share leads to custom domain landing

This commit is contained in:
Tom Moor
2023-11-01 23:20:41 -04:00
parent f0bf60eb40
commit 1b73339800
2 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import Document from "~/models/Document";
import env from "~/env";
export function homePath(): string {
return "/home";
return env.ROOT_SHARE_ID ? "/" : "/home";
}
export function draftsPath(): string {