I checked both of your links and in the <body> tag, both of them have class page-id-1508, meaning that the page id is recognised correctly either with or without the query variable.
However, as @mmm suggested in the comment above, it seems that you added the menu item as Custom Link (note the menu item classes menu-item-type-custom menu-item-object-custom; if you added it as a Page, it would has classes menu-item-type-post_type menu-item-object-page).
Since it is a Custom Link, when the link changes (in this case, it has query variable added), WordPress doesn’t recognise it as the same link anymore, and thus it looses the active class.
So because that is a page, I suggest you add that menu item as a page and check again.
Related Posts:
- Dynamically exclude menu items from wp_nav_menu
- How to Add to Each Menu Link with link text to data-attr?
- Removing link ” from ” menu for some “links” without JS
- wp_nav_menu always falls back to a menu
- Multi Level Bootstrap Navigation Menu in WordPress
- Determine if a navigation item has children
- Bootstrap dropdown nav pills not working with wp_nav_menu()
- Add Page ID class to nav menu items
- Links open only on new tab or window
- Bar separated navigation by extending Walker_Page
- How to Create a Custom WordPress Navigation Menu with the Code?
- how to automatically generate hierarchical menus from hierarchy of pages?
- WordPress wp_nav_menu with a nav tag
- Add sidebars to navigation menu?
- `start_el` depth argument in custom nav walker always evaluates to zero
- Programmatically set current-menu-item using wp_nav_menu
- Add custom text to menu
- Menu styling for last menu item
- How to insert custom code into wp_nav_menu structure?
- Menus like a CMS
- Remove li from wp_nav_menu
- Adding post excerpt into navigation menu
- Use wp_nav_menu to display ALL pages
- Third level navigation class
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- get_query_var(‘post_type’) not returning in a filter
- Prev / Next menu item
- Navigation Menus Depth for specific menus
- wp_nav_menu() with multiple Class
- add span class and i tag inside wp_nav_menu link anchor tag
- I am facing a problem with the navigation menu of my website
- Prepend to start of WordPress nav loop
- Grey out nav buttons unless is_user_logged_in()
- You do not have permission to create Navigation Menus – Twenty Twenty-Two theme
- How to approach this menu design?
- Trying to Create Menu in WordPress
- Creating a navigation menu to see where you are on your website
- How can I add text to a single nav menu item?
- Alternative to wp_get_nav_menu_items?
- Using my WordPress menu on another platform
- How Do I Add Images To Main Navigation Menu
- Add a submenu to wp_nav_menu
- Walker menu not displaying at all
- Hide menu from homepage
- remove menu items if user can’t read
- How to automatically redirect to first item of second navigation level in a multi-level menu?
- Locking in navigation labels before changing title?
- How to add columns to wordpress menu editor
- how to insert data in li tag of navigation
- How to Add support for sub-menu item description in wordpress?
- Current author archive in navigation menu
- Output Post ID for all nav_items
- Custom ul class
- How to open a lightbox form from a navigation menu item
- How to create menu spread over four lines including images
- Additional navigation bar in header
- Help with WordPress Custom Nav Walker
- Why is my navigation in my onepage not working?
- Navigation item – current date in url
- Hide a menu (navigation bar) on all posts
- Bootstrap Theme Migrated to WordPress
- WordPress Menu Navigation links not working
- Bootstrap Nav Walker Sub Menu Image
- Creating navigation out of specific IDs and their children?
- Where to place a svg chevron down in my custom walker?
- How to apply individual menu item’s “CSS Classes” to , not ?
- Add active class to wp_nav_menu
- Output existing wp_nav_menu with a custom walker
- how to split vertical menu into two columns using walker nav menu
- Sub-Items Not Visible in Navigation
- How can I create this menu with wp_nav_menu()?
- how to configure this type of menu
- Header lists posts instead of showing primary nav menu
- Programmatically add a Navigation menu and menu items
- Menu Details Output in Javascript [closed]
- Show Child of Parent Page including all other parents
- Can’t add optional class to menu item when using Walker_Nav_Menu
- nav_menu: how to force a subpage switching on the parent menu
- wp_dropdown_nav function to list menu items
- wp_nav_menu() reutrns HTTPS?
- Show only second level menu items? [duplicate]
- Add item ONLY to the primairy navigation
- Update nav menu item position programmatically
- Navigational error
- Determine if a navigation item has children
- Image menu on responsive WordPress
- individual images as navigation design TwentyTen
- WordPress Navigation default output
- Display Username as parent menu item
- How to add or remove borders in navigation menu?
- Custom navigation / menu output (walker?)
- How do I programatically remove Menus?
- Displaying a Custom Avatar in WP Bootstrap Navwalker Menus in WordPress
- Is there a way to make it so that I don’t get a hamburger menu, but rather a desktop style nav, when resizing to a mobile size
- Give custom class names to WP nav sub-menu
- Nav walker bootstrap: Display 3rd level and 4th level in dropdown menu
- Header not showing in new pages
- Add a new menu selector element into WordPress nav-menus.php
- How to get and set post meta for core/navigation-link?
- How to add toggle-able DOM element after nav menu item?