Skip to content
New issue

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

Feedback for “Custom Theme” #2877

Open
saylestyler opened this issue May 9, 2024 · 0 comments
Open

Feedback for “Custom Theme” #2877

saylestyler opened this issue May 9, 2024 · 0 comments

Comments

@saylestyler
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant