Skip to content

submenu's parent item should be active #1

@dallas

Description

@dallas

Hi.

I'm using your ubermenu view helper and I've come across a problem. I've got a main menu with various submenus. For many of my submenu items, I'm declaring :current => controller.controller_name == "some_controller" which works fine for the exact current_page? match (when I click on the submenu item, both it and its parent are "current") but not for other actions in the same controller (no item in the main menu is "current"). Am I doing something incorrectly or should the parent stay "current" when any of its descendants are "current"?

Also, I tried setting :force_current => true on both the main menu item and a submenu item with the same result.

Any help would be appreciated, thanks.
Dallas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions