Skip to content

Commit 0be024f

Browse files
committed
this feels wrong… but solves the issue and passes the tests
what am I missing closes #689
1 parent 5222f99 commit 0be024f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type PageLink =
99
const linkCache = new WeakMap<Config["pages"], Map<string, PageLink>>();
1010

1111
export function normalizePath(path: string): string {
12-
return path.replace(/[?#].*$/, "");
12+
return path.replace(/[?#].*$/, "").replace(/\/$/, "/index");
1313
}
1414

1515
export function findLink(path: string, options: Pick<Config, "pages" | "title"> = {pages: []}): PageLink | undefined {

0 commit comments

Comments
 (0)