From b110b042737dfd80ecea2886840c944c1d96f43c Mon Sep 17 00:00:00 2001 From: conglinyizhi Date: Sun, 18 May 2025 10:10:16 +0800 Subject: [PATCH] fix(404): Simplify path retrieval logic --- src/pages/404.astro | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/404.astro b/src/pages/404.astro index e7f5736..c73b661 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -1,15 +1,14 @@ --- import Layout from '../layouts/Layout.astro'; -const url = new URL(Astro.url); -const notFoundPath = url.pathname +const url = Astro.url.pathname ---

command not found.

-

sh: ~{notFoundPath}: command not found.

+

sh: ~{url}: command not found.

help