Skip to content

fix: omit unlinked ancestors from breadcrumb structured data - #21

Merged
jaysin586 merged 1 commit into
mainfrom
fix/breadcrumb-structured-data
Sep 22, 2026
Merged

jaysin586 merged 1 commit into
mainfrom
fix/breadcrumb-structured-data

Conversation

@jaysin586

Copy link
Copy Markdown
Contributor

Summary

Fix breadcrumb structured data when navigation includes unlinked grouping labels. A trail such as Home → Docs → Renderers (unlinked) → HTML now emits Home → Docs → HTML in JSON-LD, while visible navigation retains Renderers.

Changes

  • Omit unlinked intermediate crumbs, retain the final current-page crumb, and keep positions contiguous.
  • Preserve the original breadcrumb context and existing URL construction.
  • Add component SSR regressions and document the behavior.

Validation

  • Original component reproduces two regression failures; fixed component passes all 12 package tests.
  • Type checks and Trunk pass.
  • Downstream production verification passes 31 browser tests covering registered docs routes, hydration, client navigation, and preserved visible grouping labels.

The consuming site should adopt the version tag produced after this lands through the normal release workflow.

Commits

  • 2e6c93b fix: omit non-navigable ancestors from breadcrumb schema

@jaysin586 jaysin586 added bug Apply to any code that fixes incorrect behavior or errors documentation Improvements or additions to documentation javascript Pull requests that update javascript code labels Sep 22, 2026
@jaysin586 jaysin586 self-assigned this Sep 22, 2026
@jaysin586
jaysin586 merged commit e65933a into main Sep 22, 2026
3 checks passed
@jaysin586
jaysin586 deleted the fix/breadcrumb-structured-data branch October 9, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Apply to any code that fixes incorrect behavior or errors documentation Improvements or additions to documentation javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant