Closed (fixed)
Project:
Easy Breadcrumb
Version:
7.x-2.11
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Feb 2014 at 01:01 UTC
Updated:
20 Jun 2014 at 00:00 UTC
Jump to comment: Most recent
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
Comment #1
greg boggsHrm. This is a tricky one because it would have to read arguments to the view. I'll give it a shot tomorrow...
Comment #2
sonemonu commentedThis will be probably resolved in the next release, coming this weekend on the next week. Thanks.
Comment #3
sonemonu commentedHey Mark,
Could you please check if this works fine for you in the 7.x-2.10 released on 2014-Jun-13?
Thanks!
Comment #4
sonemonu commented