Skip to content

fix(next): disables active nav item#11434

Merged
jacobsfletch merged 6 commits into
mainfrom
fix/disable-active-nav-link
Feb 27, 2025
Merged

fix(next): disables active nav item#11434
jacobsfletch merged 6 commits into
mainfrom
fix/disable-active-nav-link

Conversation

@jacobsfletch

@jacobsfletch jacobsfletch commented Feb 27, 2025

Copy link
Copy Markdown
Member

When visiting a collection's list view, the nav item corresponding to that collection correctly appears in an active state, but is still rendered as an anchor tag. This makes it possible to reload the current page by simply clicking the link, which is a problem because this performs an unnecessary server roundtrip. This is especially apparent when search params exist in the current URL, as the href on the link does not.

Unrelated: also cleans up leftover code that was missed in this PR: #11155

@jacobsfletch jacobsfletch changed the title fix(ui): disables active nav item fix(next): disables active nav item Feb 27, 2025
@jacobsfletch jacobsfletch merged commit c4bc0ae into main Feb 27, 2025
@jacobsfletch jacobsfletch deleted the fix/disable-active-nav-link branch February 27, 2025 20:21
@github-actions

github-actions Bot commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.26.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant