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