This is my example URL /buy/coins/non-circulated/1954
/buy is my main Views page without using %.
coins, non-circulated, and 1954 are my views arguments

it is returning this format - Home » Buy » Buy » Buy » 1954
instead of this one - Home » Buy » Coins » Non Circulated » 1954

This is the code that creates the segment title.

// File includes/easy_breadcrumb.blocks.inc
function _easy_breadcrumb_obtain_segment_title($normal_path,
$valid_path, $segment_text) {
  // if path is valid then try to obtain the title from the menu router (if available).
  if ($valid_path) {
    $router_item = menu_get_item($normal_path);
    $title = $router_item['title'];
  }
  // just infer the title from the segment text.
  if (!isset($title) || $title === '') {
    $title = _easy_breadcrumb_normalize_text($segment_text);
  }
  return $title;
}

Commenting out $title = $router_item['title']; will work.
I guess we just need extra condition for this part?

Comments

Greg Boggs’s picture

Hrm. This is a tricky one because it would have to read arguments to the view. I'll give it a shot tomorrow...

sonemonu’s picture

Assigned: Unassigned » sonemonu

This will be probably resolved in the next release, coming this weekend on the next week. Thanks.

sonemonu’s picture

Version: 7.x-2.9 » 7.x-2.10
Status: Active » Needs review

Hey Mark,

Could you please check if this works fine for you in the 7.x-2.10 released on 2014-Jun-13?

Thanks!

sonemonu’s picture

Version: 7.x-2.10 » 7.x-2.11
Status: Needs review » Closed (fixed)