Version 7.x-2.1 worked correctly, however after updating to 7.x-2.7 I'm experiencing an issue.

I have the structure:
site.com/products/chairs/chair1

When I got to: site.com/products/chairs/ I see Home/Products/Chairs

However, if I got to site.com/products/chairs/chair-1 I see Home/Products/Products/Chair1 notice how "Products" is duplicated, however the link is correct, it's just the segment title.

Regards

Comments

gamesfrager’s picture

Priority: Major » Normal

I reduced it to normal instead of major due to disabling those two option made it work for my needs:
- Use the real page's title when available
- Make the page's title segment a link

Once those disabled, bread crumbs were working correctly. I hope this would indicate the problematic part.

Regards

clemens.tolboom’s picture

Title: Issue with segment title not correct » Segment title should call title_callback if available instead of using just the item tile.

@gamesfrager: Thanks for reporting. It helped me to solve my "Home » Forum » Forum » topic 1" repeat. I disabled the setting to get the forum name back.

The code in easy_breadcrumb.blocks.inc

function _easy_breadcrumb_normalize_url_segment_text_url($segment_normal_path,
...
//dsm($item, $segment_normal_path);
    if(isset($item['title'])) {
      return $item['title'];
    }
}

should call the title callback function if available.

This is what 'forum/%' menu item has in $item:
title (String, 5 characters ) Forum
title_callback (String, 1 characters ) t | (Callback) t();
title_arguments (String, 0 characters )

@gamesfrager: what is your Product? I guess a vocabulary 'Products' with a Chair as a term?

gamesfrager’s picture

That's correct, my products categories are taxonomy terms.

sonemonu’s picture

Assigned: Unassigned » sonemonu
Issue summary: View changes
Status: Active » Closed (fixed)

Corrected in 7.x-2.9.

Thanks for your feedbacks!