Often, an application might have many levels of navigation.
And as an user, I would like to see ancestor links highlighted as well as a current link.
The problem is that now active className is being assigned only for the current route.
Implement an ancestor option which would initiate checking for a current route in children resources.
If it exists, then ancestor class name should be assigned to that link.
{{linkTo 'category.index' id ancestor='yes'}}Computer{{/linkTo}}
Often, an application might have many levels of navigation. And as an user, I would like to see ancestor links highlighted as well as a current link. The problem is that now active className is being assigned only for the current route.
Example: a classes directory.
The routes are:
An user visits /computer/programming/javascript/
Unfortunately, now the menus look like that: Language * Computer * Sports Programming * QA * Administration PHP * Python * Javascript
The idea is that the menus should look like that: Language * Computer * Sports Programming * QA * Administration PHP * Python * Javascript
Proposed solution
Implement an ancestor option which would initiate checking for a current route in children resources. If it exists, then ancestor class name should be assigned to that link.