You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
Navigating straight to a deep link does not update the menu appearance.
For example, pointing your browser to http://b3.dev/category/images does not highlight the menu items in the Category > Images path.
The onMenuItemUpdate event handler in the new MenuItemActivation behavior should also look at the menu item's object (containing the post or term ID), object_parent and object_type to determine whether the menu should be highlighted when the application loads.
The text was updated successfully, but these errors were encountered:
At the moment, menu item state is updated on navigation events.
Instead, we should trigger the update when an archive or post view is loaded. Because the menu model contains references to object types and IDs, we can easily locate the corresponding menu item(s) to highlight. (Only a minor change is required to the MenuItem behavior for this.)
Navigating straight to a deep link does not update the menu appearance.
For example, pointing your browser to
http://b3.dev/category/images
does not highlight the menu items in the Category > Images path.The
onMenuItemUpdate
event handler in the newMenuItemActivation
behavior should also look at the menu item'sobject
(containing the post or term ID),object_parent
andobject_type
to determine whether the menu should be highlighted when the application loads.The text was updated successfully, but these errors were encountered: