How to add active-trail class to a links in a view?
One solution is to add an invisible PHP-field to a view (let the field identifier will be php).

Set a setup code to

$static = module_exists('crumbs') ? crumbs_get_trail() : menu_get_active_trail();


Set a value code to

$href = 'taxonomy/term/' . $data-&gt;tid;
foreach ($static as $item) {
  if ($item['href'] === $href) {
    return 'active-trail';
  }
}


And at last add a custom CSS class to a link field with token [php]