wp_nav_menu doesn’t add current-menu-item when there is an url parameter [closed]

I found the problem: I used a ‘link’ menu item instead of a ‘page’ menu item because it was originally a post type archive (but I changed that in a page). If I use a ‘page’ menu item the current-menu-item CSS class does work when there is an url parameter in the url.