chore(playground): add sibling pages whose slugs share a prefix - #49
Merged
Merged
Conversation
"Section" (`/dynamic-nav/section`) and "Section archive" (`/dynamic-nav/section-archive`) are siblings in the Dynamic Navigation category: the first slug is a prefix of the second without being its parent. On "Section archive", only that entry should be active in the menu, which exercises the segment-aware link matching (AntelopeJS/dms-frontend, nuxt/ui#6803).
5 tasks
alessaloisio
force-pushed
the
chore/playground-sibling-pages
branch
from
September 24, 2026 18:05
c43532e to
7ef28ed
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two sibling pages to the playground's Dynamic Navigation category whose slugs share a prefix without one being the other's parent:
/dynamic-nav/section/dynamic-nav/section-archiveOn "Section archive", only that entry should be active in the menu. Until now the playground had no such pair, so the prefix bug in Nuxt UI's Inertia link (a link to
/testactive on/test-a) could not be seen there.Related issue
Demo for the segment-aware link matching fix in the Vue renderer (AntelopeJS/dms-frontend, fixing nuxt/ui#6803 until nuxt/ui#6809 ships). With the current published renderer both entries light up on "Section archive"; with the fix only "Section archive" does.
Verification
tsc --noEmiton the playground ✅,oxfmt --check✅.Checklist