mdn / yari

The platform code behind MDN Web Docs
Mozilla Public License 2.0
1.16k stars 486 forks source link

GlossarySidebar: Child terms are not available in the sidebar #11349

Open dipikabh opened 1 week ago

dipikabh commented 1 week ago

Summary

Terms in "/glossary/term/" sub-folders are not available in the Glossary sidebar

URL

Few examples:

Reproduction steps

Visit any glossary term that's in a parent glossary term sub-folder, such as https://developer.mozilla.org/en-US/docs/Glossary/DSL/Digital_subscriber_line

Expected behavior

Terms in child folders should also appear in the sidebar, also especially when the terms share part of the name with the parent glossary term

Actual behavior

Device

Desktop

Browser

Firefox

Browser version

Stable

Operating system

Mac OS

Screenshot

Anything else?

No response

Validations

caugner commented 1 week ago

@dipikabh Could these pages not simply be on the same level as their disambiguation pages?

dipikabh commented 1 week ago

That was my first thought instead of creating sub-folders. But I am guessing the original idea would have been to keep related terms together in the folder organization.

I checked, and we have this guideline for creating glossary sub-pages: Dealing with disambiguation. We can bring it up in one of our internal meetings to discuss the pros and cons and any historical context.