mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-28 12:33:10 +00:00
When a sidebar link in one category points to a generated-index page URL from another category, the breadcrumb search would incorrectly return the link's parent category instead of the category that owns the URL. This fix uses a two-pass approach when searching for the current sidebar category: 1. First pass: Look for categories that directly own the URL (category.href) 2. Second pass: If not found, fall back to finding via links (for doc pages) This ensures generated-index pages display their correct category's items even when another category has a link pointing to the same URL. Closes #11612 |
||
|---|---|---|
| .. | ||
| src | ||
| .npmignore | ||
| README.md | ||
| package.json | ||
| tsconfig.client.json | ||
| tsconfig.json | ||
@docusaurus/plugin-content-docs
Docs plugin for Docusaurus.