I have a navigation sidebar that contains links to all my main pages on the site - but not sub pages. I have successfully used the "current" state to highlight the link with the active main page in the sidebar.
When I navigate to a sub page I still want to have the parent main page highlighted in the sidebar. I can do it manually by making a unique sidebar for each main page and use these sidebars on the sub pages. But I would rather do it more intelligently like I do it now with the "current" state.
Is there a good way to achieve this?