From 1d04befff13cfa354ada1cfe52e050411b3f4f96 Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Tue, 1 Jul 2025 19:08:34 +0200 Subject: [PATCH] :bug: Fix trailing slash --- src/components/Breadcrumb.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Breadcrumb.astro b/src/components/Breadcrumb.astro index 19ab7c6..46ca902 100644 --- a/src/components/Breadcrumb.astro +++ b/src/components/Breadcrumb.astro @@ -8,7 +8,7 @@ let paths: string[] if (pathname === "/") { paths = ["~"] } else { - paths = ["~", ...pathname.split("/").slice(1)] + paths = ["~", ...pathname.split("/").filter(x => x)] } function getLink(path: string): NavLink {