summaryrefslogtreecommitdiff
path: root/src/pages/404.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-26 17:07:28 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-26 17:07:28 +0100
commit587dc0c30cd2b42e384864788205f2c150a17f2b (patch)
tree4b6e903d0803a635e01f93b21629228ee7227bc0 /src/pages/404.astro
parent5e5cc2634edfcb3528accdcfd2f60d31dc33edfe (diff)
Adds 404 page
Diffstat (limited to 'src/pages/404.astro')
-rw-r--r--src/pages/404.astro7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pages/404.astro b/src/pages/404.astro
new file mode 100644
index 0000000..447a91e
--- /dev/null
+++ b/src/pages/404.astro
@@ -0,0 +1,7 @@
+---
+import { getLocaleFromPathOrThrow } from '$lib/getLocaleFromPath';
+
+const locale = getLocaleFromPathOrThrow(Astro.url.pathname);
+---
+
+<meta http-equiv="refresh" content={`0;url=/${locale}/not-found`} />