I have a system of menus on a site that helps the user drill down to the page they are looking for. If they click a link in the main nav, it might take the to /category. On that page, a sidebar menu would direct them to /category/page.
Previously, I have used the active class to highlight a menu item while the user is on that page. In this case, I want both menu items to be highlighted, since the page the user is on falls is a part of the main category.
To clarify, how can I keep a link active if it points to /category and the page the user is viewing is /category/page?
Thanks for the help!