summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pages/404.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/404.astro b/src/pages/404.astro
index 447a91e..bc91220 100644
--- a/src/pages/404.astro
+++ b/src/pages/404.astro
@@ -1,7 +1,7 @@
---
-import { getLocaleFromPathOrThrow } from '$lib/getLocaleFromPath';
+import { getLocaleFromPathOrDefault } from '$lib/getLocaleFromPath';
-const locale = getLocaleFromPathOrThrow(Astro.url.pathname);
+const locale = getLocaleFromPathOrDefault(Astro.url.pathname);
---
<meta http-equiv="refresh" content={`0;url=/${locale}/not-found`} />