1 Commits

Author SHA1 Message Date
1d04befff1 🐛 Fix trailing slash 2025-07-01 19:08:34 +02:00

View File

@ -8,7 +8,7 @@ let paths: string[]
if (pathname === "/") { if (pathname === "/") {
paths = ["~"] paths = ["~"]
} else { } else {
paths = ["~", ...pathname.split("/").slice(1)] paths = ["~", ...pathname.split("/").filter(x => x)]
} }
function getLink(path: string): NavLink { function getLink(path: string): NavLink {