🐛 Fix trailing slash
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user