shuding / nextra

Simple, powerful and flexible site generation framework with everything you love from Next.js.

Home Page:https://nextra.site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feedback for “Custom Theme”

saylestyler opened this issue · comments

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.