Fix active class when additional query params are present