You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the tagGroup option for groupPathsBy in docusaurus.config.ts, each group gets an "Introduction" page. Clicking on this page in any group expands the menu for all groups, which negatively impacts the user experience.
Expected behavior
Clicking on an "Introduction" page should only expand the corresponding group in the sidebar, rather than affecting all groups.
Current behavior
Clicking on an "Introduction" page in any group expands the menu for all groups, making the sidebar feel unintuitive.
Possible solution
One possible fix could be to place a single "Introduction" page at the beginning of the grouped pages instead of having one per group. Additionally, ensuring that each "Introduction" page has a unique ID in the generated sidebar.ts might prevent the issue.
Steps to reproduce
Configure groupPathsBy with tagGroup in docusaurus.config.ts.
Generate the sidebar.
Observe that each group gets an "Introduction" page.
Click on any "Introduction" page and notice that all groups expand simultaneously.
Screenshots
Context
This behavior makes navigation confusing, as users expect only the clicked group to expand rather than all groups.
Your Environment
Version used: 4.3.3
Environment name and version:
Operating System and version: Windows 11 & Ubuntu 22
Link to your project:
The text was updated successfully, but these errors were encountered:
Hi @JeremiasIsnardyEA, it's hard to reproduce or fully grasp what you're seeing without steps/details, but have you already tried setting categorySourceLink to "tag"?
After regenerating the docs, building and serving you can navigate to the menu and click on the "introduction" below General and see the described behaviour:
Describe the bug
When using the
tagGroup
option forgroupPathsBy
indocusaurus.config.ts
, each group gets an "Introduction" page. Clicking on this page in any group expands the menu for all groups, which negatively impacts the user experience.Expected behavior
Clicking on an "Introduction" page should only expand the corresponding group in the sidebar, rather than affecting all groups.
Current behavior
Clicking on an "Introduction" page in any group expands the menu for all groups, making the sidebar feel unintuitive.
Possible solution
One possible fix could be to place a single "Introduction" page at the beginning of the grouped pages instead of having one per group. Additionally, ensuring that each "Introduction" page has a unique ID in the generated
sidebar.ts
might prevent the issue.Steps to reproduce
groupPathsBy
withtagGroup
indocusaurus.config.ts
.Screenshots
Context
This behavior makes navigation confusing, as users expect only the clicked group to expand rather than all groups.
Your Environment
The text was updated successfully, but these errors were encountered: