Skip to content

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes an issue where the nav "active state" wouldn't be updated after creating a new collection/taxonomy/nav/asset container.

After some debugging, it seems related to the URL caching done in the NavBuilder class, as going to the collection index and back to the collection show page would invalidate the cache and update the active state.

This PR fixes it by listening to the relevant Created events and triggering a cache clear.

@jasonvarga jasonvarga merged commit e763dd4 into 5.x Dec 11, 2025
27 checks passed
@jasonvarga jasonvarga deleted the new-nav-items branch December 11, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants