I have a view block that lists different nodes. If I am viewing the block on any of those pages I'd like to add an .active class (or at least some kind of identifier) to highlight it with CSS as a form of active trail.
I have no clue on how to do this though, and I can't really find any useful documentation for this either.
Should I do this in a template, within views UI?
If i could get the current node ID
views-view-fields--products--block-1.html.twig I could compare it to the individual row IDs i guess?
I've seen this patch, but I'd rather get a better understanding how I am supposed to achieve this myself than just adding a random patch.