fix: 404 page styling for nested pages (closes #458)

This commit is contained in:
Jacky Zhao committed 2023-09-12 21:29:57 -07:00
1 parent 71d81bde1d
commit 60a3c54339
7 files changed
+31 -13

No files matched your search

+4 -1
View File
@@ -123,7 +123,10 @@ export function slugTag(tag: string) {
}
export function joinSegments(...args: string[]): string {
return args.filter((segment) => segment !== "").join("/")
return args
.filter((segment) => segment !== "")
.join("/")
.replace(/\/\/+/g, "/")
}
export function getAllSegmentPrefixes(tags: string): string[] {