Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you check any of the available admin page of the taxonomy term group (taxonomy/term/%tid/group) - "Add people", "People", "Permissions" or "Roles", then you can see that a breadcrumb item "Group" has a broken path - "taxonomy_term/%tid/group" instead of "taxonomy/term/%tid/group". The reason is in wrong path functionality which is currently working fine for nodes and users but not for taxonomy terms - "$group_type/$gid/group".
Here is a patch which correct a breadcrumbs functionality and should work for all entity types
Comment | File | Size | Author |
---|---|---|---|
#7 | og-breadcrumbs-taxonomy-term-2123109-6.patch | 638 bytes | jacob.embree |
| |||
#4 | 2123109-og-breadcrumbs-taxonomy-term-4.patch | 780 bytes | NofarG |
Comments
Comment #1
RoySegall CreditAttribution: RoySegall commentedThere white spaces in your path so i rolled it. I can approve this but would like that others to review it.
Comment #2
NofarG CreditAttribution: NofarG commented@RoySegall 's patch (#1) - reviewed, tested and looks great.
Comment #3
amitaibuTrailing spaces.
If we repeat this several times, why not move logic into og_set_breadcrumb()?
Comment #4
NofarG CreditAttribution: NofarG commentedHere's a new patch, modifying og_set_breadcrumb() instead of modifying everything else.
Comment #5
Dimitrius CreditAttribution: Dimitrius commentedThe patch from the #4 doesn't work for me when an alias for the "taxonomy/term/%tid" is used. Seems that it could work only with a Sub-path URL Aliases module, as for a taxonomy term group I'm getting a link with a term page alias which doesn't work - "%term_alias/group".
Comment #6
jacob.embree CreditAttribution: jacob.embree at St. Louis Integration commented#4 indeed breaks down when taxonomy term paths are aliased. In
og_ui_menu()
taxonomy terms are treated specially, so I make taxonomy terms a special case in this patch.Comment #7
jacob.embree CreditAttribution: jacob.embree at St. Louis Integration commented