As you can see from this screenshot, the Home link is active in my current navigation (powered by managed metadata) as I'm on the homepage. Under Company are five links, all of which I would like to hide unless the Company link is active.

[![Screenshot of navigation menu with Home link active](https://i.stack.imgur.com/TW9HF.png)](https://i.stack.imgur.com/TW9HF.png)

How can I do this? Do I need to configure something in the term store, or do I need to edit the source code using SharePoint Designer?