We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E.g.,
export default { pages: [ {name: "Home", path: "/"} ] };
Kind of a degenerate case, but anyway.
The text was updated successfully, but these errors were encountered:
This is because the page path is not "normalized", it should be "/index" instead of "/".
We can fix by adding index but it feels wrong?
--- a/src/pager.ts +++ b/src/pager.ts @@ -9,7 +9,7 @@ export type PageLink = const linkCache = new WeakMap<Config["pages"], Map<string, PageLink>>(); export function normalizePath(path: string): string { - return path.replace(/[?#].*$/, ""); + return path.replace(/[?#].*$/, "").replace(/\/$/, "/index"); }
Sorry, something went wrong.
this feels wrong… but solves the issue and passes the tests
0be024f
what am I missing closes #689
normalize / to /index in the pages config option
78f682a
closes #689
normalize / to /index in the pages config option (#1022)
336a949
Successfully merging a pull request may close this issue.
E.g.,
Kind of a degenerate case, but anyway.
The text was updated successfully, but these errors were encountered: