How to highlight an active filter?

Hi, thank you for your reply!
It says this in the URL: ?filter= and then the category’s name.

Ok, then it’s not a parameter, but a query string, so get('filter') instead of param('filter').

This worked, amazing!
Thank you.