Skip to content

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

Merged
sserrata merged 1 commit intoPaloAltoNetworks:mainfrom
emmanuel-ferdman:fix-taggroup-sidebar-keys
Mar 27, 2026
Merged

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

Conversation

@emmanuel-ferdman
Copy link
Copy Markdown
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>
@github-actions
Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 45a2922):

https://docusaurus-openapi-36b86--pr1317-lmpwoq7b.web.app

(expires Sun, 26 Apr 2026 02:03:00 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: bf293780ee827f578864d92193b8c2866acd459f

@sserrata sserrata merged commit d0d0d0b into PaloAltoNetworks:main Mar 27, 2026
9 of 10 checks passed
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+

2 participants