On my site i have the weird problem that for one of the menu pages the breadcrumb shows as one lvl deeper than the page it's on.
So it's showing: Home > Page i'm on > subpage i'm not on instead of: Home > Page i'm on
In addition, contrary to other pages i have, the bottom level of the breadcrumb is clickable which makes no sense, as that's supposed to be the page i'm on (wel it's not due to the above described error, but anywho).
I've no breadcrumb-modules installed. I do have a hook to modify the breadcrumbs like so:
function mytheme_breadcrumb(&$variables) {
if (isset($variables['breadcrumb']) && !empty($variables['breadcrumb'])) {
$crumbs = '<ul class="horizontal-list horizontal-list--multilevel">';
$breadcrumb = $variables['breadcrumb'];
$array_size = count($breadcrumb);
$i = 0;
while ( $i < $array_size) {
$crumbs .= '<li class="';
if ($i+1 == $array_size) { $crumbs .= 'horizontal-list__last'; }
$crumbs .= '">' . $breadcrumb[$i] . '</li>';
$i++;
}
$crumbs .= '</ul>';
return $crumbs;
}
}
Doesn't look like the theme_breadcrumb function is responsible, as it uses the values it's getting from drupal by standard.
Anybody any ideas as to what might be causing this?