Feedback for “Custom Theme”
saylestyler opened this issue · comments
Tyler Sayles commented
The next NavLink
at bottom of page for "About Nextra" has the same href
as the page itself.
To reproduce:
- custom-theme doc
- scroll to bottom
- click About Nextra
- note that it reloads the page
I assume the issue stems from packages/nextra-theme-docs/src/components/nav-links.tsx
:
const navigation: Exclude<DocsThemeConfig['navigation'], boolean> =
typeof nav === 'boolean' ? { prev: nav, next: nav } : nav
let prev = navigation.prev && flatDirectories[currentIndex - 1]
let next = navigation.next && flatDirectories[currentIndex + 1]
I can try making a fix later if it isn't just a configuration issue.