Link Trail By Path sets the active-trail on any link items according to the current url, or any link generated using the l() API function.

For example if you are at yoursite.com/blog/category1/article1, link items with these paths will get the active-trail class on them and expand accordingly.

  • blog
  • blog/category1
  • blog/category1/article1

Link Trail By Path is best used in conjunction with Pathauto.

Related modules

Supporting organizations: 
Drupal 8 port

Project information

Releases