Skip to content

Docs: Nav bar issue with internal links #2830

@kakabisht

Description

@kakabisht

It is unclear whether this behavior is intentional or a bug. When navigating the documentation, selecting an internal hyperlink that points to a page in a different directory does not update the navbar to reflect the new location.

This behavior appears inconsistent. In my testing, navigation works correctly for pages under the Prometheus Server and Alertmanager sections, but not for other directories. There may be additional cases where this occurs.

##Steps to reproduce

  1. Open the FAQ page: https://prometheus.io/docs/introduction/faq/
  2. Select the service discovery link.
  3. Observe that the navbar does not update to reflect the new page location.

Note: Several other examples do exist,

##Expected behavior

The navbar should update to show the current page’s location within the documentation hierarchy after navigating through an internal link.

##Actual behavior

The content changes, but the navbar continues to display the previous section.

##Additional notes

The observation regarding the Prometheus Server and Alertmanager directories is based on limited testing and may require further verification.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions