From 6c7695ca6cbc84c20f5a44ce3e9b582fcdb1b30a Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 10 Jul 2024 23:50:50 +0600 Subject: [PATCH] web/error: redirect home on 404 --- web/src/lib/settings/defaults.ts | 2 +- web/src/routes/+error.svelte | 20 +++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/web/src/lib/settings/defaults.ts b/web/src/lib/settings/defaults.ts index adb698f5..4e44a83e 100644 --- a/web/src/lib/settings/defaults.ts +++ b/web/src/lib/settings/defaults.ts @@ -50,4 +50,4 @@ const defaultSettingsPage = () => { } export default defaultSettings; -export { defaultSettingsPage }; \ No newline at end of file +export { defaultSettingsPage }; diff --git a/web/src/routes/+error.svelte b/web/src/routes/+error.svelte index abcd6efe..e0d7c610 100644 --- a/web/src/routes/+error.svelte +++ b/web/src/routes/+error.svelte @@ -1,17 +1,15 @@ - - -

{$page.status}: {$page.error?.message}

\ No newline at end of file