From 41c23337ff9b95973e4d8a3376d2d7df3f89c2f2 Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 4 Sep 2024 21:23:47 +0600 Subject: [PATCH] web/error: redirect to default about page on 404 error --- web/src/routes/+error.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/routes/+error.svelte b/web/src/routes/+error.svelte index 0a38d00d..a317760a 100644 --- a/web/src/routes/+error.svelte +++ b/web/src/routes/+error.svelte @@ -8,6 +8,8 @@ if ($page.error?.message === "Not Found") { if ($page.url.pathname.startsWith("/settings")) { goto(defaultNavPage("settings"), { replaceState: true }); + } else if ($page.url.pathname.startsWith("/about")) { + goto(defaultNavPage("about"), { replaceState: true }); } else { goto("/", { replaceState: true }); }