From d51c54e9a76d8cbbf44cc52156fe363ab171ee30 Mon Sep 17 00:00:00 2001 From: "Kent Joseph T. Palima" Date: Sun, 3 May 2026 11:38:21 +0800 Subject: [PATCH] Added 404 landing page --- src/pages/404.astro | 128 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 src/pages/404.astro diff --git a/src/pages/404.astro b/src/pages/404.astro new file mode 100644 index 0000000..b087f2f --- /dev/null +++ b/src/pages/404.astro @@ -0,0 +1,128 @@ +--- +import Layout from '../layouts/Layout.astro'; + +// 1. Capture the exact path the user tried to visit (e.g., "/hihi") +const currentPath = Astro.url.pathname; + +// 2. Build the correct shortlink URL without the "www." +const shortlinkUrl = `https://upiecep.org${currentPath}`; +--- + + +
+

404

+

Oops! We couldn't find that page.

+

+ The link you clicked might be broken, or the page may have been removed. +

+ + + +
+
+ +