Fire click on tab that is part of a navigation route


Hi, I’m trying to establish the following behaviour: I want to use a routing tab to fire click events in the case that the route is already active. For example if you navigate to “Home” once and click “Home” again I want an event to be fired.

I have created / adapted this CodePen but either can’t embed the button right or the event firing is not working.

Any idea?