I recently read a pretty cool blog post by Ben Cull about the IsActiveRoute TagHelper. This TagHelper adds a CSS class to an element if the specified route or route parts are in the current, active route. This is pretty useful if you want to highlight an active item in a menu.
Inspired by this idea, I created a different TagHelper, which shows or hides content, if the specified route or route parts are in the current route. This could be useful, for example, if you don’t want to have a link in an active menu item.