I have a 3 of menu tabs (i.e. router-links) that correspond to 3 different routes:
/ --> home
/users --> users
/posts --> posts
The first router-link going to / has the exact property applied, so it does not receive an active class when on /users or /posts. This works for most cases, however I am planning on allowing query parameters on the / route. For example:
/?ref=producthunt
In this case, the / router-link should still be active. However, given I have the exact property on it, it is not matching the url with the ref query parameter. Outside of adding additional logic to my component to test the route and flip classes, is there some feature of the router-link component I can use to solve this?