Closed (duplicate)
Project:
Special menu items
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
4 Jan 2012 at 23:24 UTC
Updated:
20 Jul 2012 at 12:55 UTC
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
Comment #1
hendroutomo commentedThanx bro,..it really help
Comment #2
juampynr commentedDuplicate: #573034: Breadcrumbs still show links.
Comment #3
melissavdh commentedConfirming that this fixed it for me perfectly in 7.x-1.0.
Comment #4
nwrightau commentedFixed it for me too, thanks!
Comment #5
mhf1364 commentedThanks it really works!