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

Incorrect 'active' link classification #239

Closed
palypster opened this issue Aug 20, 2017 · 0 comments
Closed

Incorrect 'active' link classification #239

palypster opened this issue Aug 20, 2017 · 0 comments

Comments

@palypster
Copy link

If I have a sidebar that has two titles (sections) that has the same name, but with different links:

<!-- _navbar.md -->

- [Admin Generator](admin-generator#admin-generator)
  - [About](admin-generator#about)
  - [Requirements](admin-generator#requirements)
  - [Installation](admin-generator#installation)
  - [Usage](admin-generator#usage)
  - [User generators](admin-generator#user-generators)

- [Authentication & Authorization](admin-auth#admin-auth)
  - [About](admin-auth#about)
  - [Requirements](admin-auth#requirements)
  - [Installation](admin-auth#installation)
  - [Authentication](admin-auth#authentication)
  - [Password rest](admin-auth#password-reset)
  - [Activation](admin-auth#activation)
  - [Using a middleware](admin-auth#middleware)

like for example "Requirements" section in the example above, it is going to set class 'active' on the second one no matter what page is actually displayed. I guess it checks the title of the page to resolve the active link. I think current URL should be used instead.

This issue was closed.
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

2 participants