After setting to a menu item, the link in the breadcrumbs is referencing "base_url/<nolink>."

Below is the code in function special_menu_items_init() --sites/all/modules/special_menu_items/special_menu_items.module:

This line of code if (strlen(strstr($crumb,'<nolink>')) > 0) { will never return true because <nolink> in $crumb is url-encoded, which means '%3Cnolink%3E'.

foreach($breadcrumb as $key => $crumb){
    if (strlen(strstr($crumb,'<nolink>')) > 0) {
      $crumb = strip_tags($crumb);
      $tag = variable_get('special_menu_items_nolink_tag', '<span>');
      $breadcrumb[$key] = special_menu_items_render_menu_item($tag, $crumb);      
    }
  }

I think it should be changed to if (strlen(strstr($crumb,urlencode('<nolink>'))) > 0) { instead.

Comments

hendroutomo’s picture

Thanx bro,..it really help

juampynr’s picture

Status: Active » Closed (duplicate)
melissavdh’s picture

Confirming that this fixed it for me perfectly in 7.x-1.0.

nwrightau’s picture

Fixed it for me too, thanks!

mhf1364’s picture

Thanks it really works!