Skip to content

Fix breadcrumb: non-clickable intermediate segments - #544

Merged
hadarishav merged 1 commit into
astrofrom
fix/breadcrumb-dead-links-v2
Apr 1, 2026
Merged

hadarishav merged 1 commit into
astrofrom
fix/breadcrumb-dead-links-v2

Conversation

@hadarishav

Copy link
Copy Markdown
Contributor

Summary

Breadcrumb segments like "Features" and "Concepts" were clickable links pointing to /docs/dataset/features which doesn't exist (404). Now intermediate segments without a corresponding page render as plain text instead of links.

Uses fs.existsSync at build time to check if each breadcrumb segment resolves to a .mdx, .astro, or index.mdx/index.astro file.

Test plan

  • Go to /docs/dataset/features/experiments - "Features" should be plain text, "Dataset" should be a link
  • Go to /docs/evaluation/concepts/eval-types - "Concepts" should be plain text
  • Go to /docs/prism/features/routing - "Features" should be plain text, "Prism" should be a link
  • Go to /docs/tracing/concepts/spans - "Concepts" should be a link (tracing/concepts has index.mdx)

🤖 Generated with Claude Code

@hadarishav
hadarishav merged commit 6442072 into astro Apr 1, 2026
1 check passed
@hadarishav
hadarishav deleted the fix/breadcrumb-dead-links-v2 branch April 1, 2026 11:23
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.

1 participant