We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5222f99 commit 0be024fCopy full SHA for 0be024f
src/pager.ts
@@ -9,7 +9,7 @@ export type PageLink =
9
const linkCache = new WeakMap<Config["pages"], Map<string, PageLink>>();
10
11
export function normalizePath(path: string): string {
12
- return path.replace(/[?#].*$/, "");
+ return path.replace(/[?#].*$/, "").replace(/\/$/, "/index");
13
}
14
15
export function findLink(path: string, options: Pick<Config, "pages" | "title"> = {pages: []}): PageLink | undefined {
0 commit comments