Related to #2917854: Missing parent item in breadcrumb when child item is active β
Breadcrumbs with hierarchy do not show selected child items.
In issue mentioned above, it was changed that, when a child item is selected, it shows the parent.
I'm not sure if that is always needed
Before we start fixing this, we should probably talk about how we expect breadcrumbs to work with hierarchy.
It might be necessary to add some extra configuration, to support multiple cases.
Demo hierarchy:
Category:
- A
-- A1
-- A2
-- A3
- B
-- B1
-- B2
When A1 is selected, do we want breadcrumb to be
Category: A>A1
OR
Category: A1
When A1, A3 and B1 is selected, do we want
Category: A1, A3, B1
OR
Category A>A1, A>A3, B>B1
OR
Category: A>A1, A3, B>B1
Personally I think we should not show the parent, but the issue mentioned above requested this, thus we might need to create a setting for this, allowing both.
I prefer following breadcrumbs:
Category: A1
Category: A1, A3, B1
And if we create a setting for showing parents too
Category: A>A1
Category A>A1, A>A3, B>B1
Remember, there can be more than one parent, thus we need to recursively check for this!
Active
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.