Skip to content

No menu item is highlighted on asset pages for users without the Assets menu #2864

Open

Description

@Flix6x

On asset pages, the navigation bar highlights Assets, as the pages set active_page = "assets". But Assets is only in the menu for admins, admin-readers and consultants (defaults.jinja). Every other user gets My Account instead (menu id accounts), so on an asset page, nothing in their menu is highlighted, and they can't see where they are.

Proposal: for users without the Assets item, highlight My Account on asset pages, as their assets are reached through it. Alternatively, the menu could tell active_page apart per user, e.g. by mapping assets to accounts when the Assets item is missing, so that each page keeps a single active_page.

Seen while reviewing #2706, as a user without admin rights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions