Skip to content

chore(playground): add sibling pages whose slugs share a prefix - #49

Merged
Upd4ting merged 1 commit into
mainfrom
chore/playground-sibling-pages
Sep 25, 2026
Merged

Upd4ting merged 1 commit into
mainfrom
chore/playground-sibling-pages

Conversation

@alessaloisio

@alessaloisio alessaloisio commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds two sibling pages to the playground's Dynamic Navigation category whose slugs share a prefix without one being the other's parent:

  • Section: /dynamic-nav/section
  • Section archive: /dynamic-nav/section-archive

On "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 /test active 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 --noEmit on the playground ✅, oxfmt --check ✅.
  • Manual: both pages render; on "Section archive" the menu highlights both entries with the published renderer and only "Section archive" with the fixed one.

Checklist

  • The pull request title follows Conventional Commits.
  • I added or updated tests when behavior changed. (Playground demo only.)
  • I updated documentation when users or contributors are affected. (Not affected.)
  • I documented breaking changes and migration steps. (No breaking change.)
  • I did not include credentials or unrelated changes.

"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).
@alessaloisio
alessaloisio force-pushed the chore/playground-sibling-pages branch from c43532e to 7ef28ed Compare September 24, 2026 18:05
@Upd4ting
Upd4ting merged commit a1bda23 into main Sep 25, 2026
2 checks passed
@Upd4ting
Upd4ting deleted the chore/playground-sibling-pages branch September 25, 2026 05:36
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.

2 participants