Problem/Motivation

It is not uncommon to have some portions of a site's main navigation repeated in other menus, e.g. footer links, some kind of shortcuts, etc. and have them named differently but still share the path with the main menu link. Currently we have no control over which link name will be used for the breadcrumb when the "use_menu_title_as_fallback" option is turned on since EasyBreadcrumbBuilder simply picks the first matching link encountered.

Proposed resolution

  • Add a new configuration value menu_title_preferred_menu that lets us choose a preferred menu to use for title fallback in the module configuration form.
  • When picking the link to use in build(), prefer links from our chosen menu, fallback to the default behaviour of using first result if the preferred menu doesn't have a matching entry.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

artis.bajars created an issue. See original summary.

artis.bajars’s picture

StatusFileSize
new4.68 KB

Adding a patch that introduces this functionality.

artis.bajars’s picture

Status: Active » Needs review
greg boggs’s picture

Status: Needs review » Needs work

Can we open this is a merge request? https://www.gregboggs.com/drupal-merge-requests/

omkar-pd made their first commit to this issue’s fork.

omkar-pd’s picture

Status: Needs work » Needs review

Opened MR of patch #2 as suggested in #4.

  • Greg Boggs committed ead39eb on 2.x authored by omkar-pd
    Issue #3276168 by omkar-pd, artis.bajars: Allow selecting a preferred...
greg boggs’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.