Skip to content

fix(plugin): generate unique sidebar keys for tagGroup items#1317

Open
emmanuel-ferdman wants to merge 1 commit intoPaloAltoNetworks:mainfrom
emmanuel-ferdman:fix-taggroup-sidebar-keys
Open

fix(plugin): generate unique sidebar keys for tagGroup items#1317
emmanuel-ferdman wants to merge 1 commit intoPaloAltoNetworks:mainfrom
emmanuel-ferdman:fix-taggroup-sidebar-keys

Conversation

@emmanuel-ferdman
Copy link
Contributor

PR Summary

When using groupPathsBy: "tagGroup" with i18n enabled, Docusaurus 3.9+ fails to build because sidebar items that appear in multiple tag groups end up with duplicate translation keys. This PR adds unique key attributes to categories and doc items within tag groups, using the tag group name as a prefix to ensure each item gets a distinct translation key even when the same endpoint appears under different groups.

Fixes #1316

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
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.

Duplicate sidebar items when grouped by tagGroup fails the Docusaurus build in Docusaurus 3.9+

1 participant