docusaurus/packages/docusaurus-plugin-content-docs
Chesars 3d28a9e798 fix(docs): prioritize category href over links in sidebar breadcrumb search
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
2025-12-11 11:48:52 -03:00
..
src fix(docs): prioritize category href over links in sidebar breadcrumb search 2025-12-11 11:48:52 -03:00
.npmignore misc: make copyUntypedFiles work for watch mode (#7445) 2022-05-18 19:18:32 +08:00
README.md chore: rename v2.docusaurus.io urls after domain switch + redirect + cleanups (#4490) 2021-03-22 20:57:49 +01:00
package.json chore: release v3.9.2 (#11491) 2025-10-17 17:15:09 +02:00
tsconfig.client.json chore: simplify TypeScript configs, use TS 5.5 configDir placeholder (#10256) 2024-07-01 17:34:40 +02:00
tsconfig.json chore: simplify TypeScript configs, use TS 5.5 configDir placeholder (#10256) 2024-07-01 17:34:40 +02:00

@docusaurus/plugin-content-docs

Docs plugin for Docusaurus.

Usage

See plugin-content-docs documentation.