 <p>After a very long time trying all sorts of things, I found an excellent module which addresses exactly this problem. Install and go, not configuration, it just works: <a href="https://www.drupal.org/project/menu_trail_by_path" rel="nofollow">https://www.drupal.org/project/menu_trail_by_path</a></p> <p>Versions for D7 and a Release Candidate for D8.</p>