My settings under HOME LINK SETTINGS:

  • Prepend breadcrumbs with a home link by default - unchecked
  • Home link title - empty

Still, the rendered breadcrumbs contain a non-needed preceding hone link as well as a non-needed delimiter.
It seems like: > Ancestor category > Parent category > child category

Here is the markup

<span class="inline odd first"><a href="/"></a></span>
<span class="delimiter">&gt;</span>

Breadcrumbs itself:

Definition: Product (yes, using commerce, and this serves for the product display)
Path: node/%node
Link title: %node:field-productdisplay-category:pb-join:name
Link path: %node:field-productdisplay-category:pb-join:url

Note

Strangely enough, another breadcrumbs guy does not suffer from this issue:
Definition: Category
Path: taxonomy/term/%term
Link title: %term:pb-join:name
Link path: %term:pb-join:url

Exported data

For extra info, just in case the above is not enough, here is the exported data of the first - the problematic - breadcrumbs:

$path_breadcrumb = new stdClass();
$path_breadcrumb->api_version = 1;
$path_breadcrumb->machine_name = 'category';
$path_breadcrumb->name = 'Category';
$path_breadcrumb->path = 'taxonomy/term/%term';
$path_breadcrumb->data = array(
  'titles' => array(
    0 => '%term:pb-join:name',
  ),
  'paths' => array(
    0 => '%term:pb-join:url',
  ),
  'home' => 0,
  'translatable' => 0,
  'arguments' => array(
    'term' => array(
      'position' => 2,
      'argument' => 'term',
      'settings' => array(
        'identifier' => 'Taxonomy term: ID',
        'input_form' => 'tid',
        'vids' => array(
          2 => '2',
          3 => 0,
          1 => 0,
        ),
        'breadcrumb' => 1,
        'transform' => 0,
      ),
    ),
  ),
  'access' => array(),
);
$path_breadcrumb->weight = 0;
CommentFileSizeAuthor
#4 2014-01-07_22-42-43.png7.72 KBkalabro

Comments

issa.haddadin’s picture

Same thing here, also there is another related bug that i think it should be added to this issue, the Home link title is not translatable.

Thank you.

kalabro’s picture

@issa.haddadin, take a look at our FAQ: https://drupal.org/node/2061955#home-link-i18n

I'll digg into the issue from #0 ASAP.

issa.haddadin’s picture

Thank you @kalabro

kalabro’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new7.72 KB

@Amir, unfortunatly I can't reproduce this bug. Are you sure that option “Prepend Home link to the breadcrumb” is disabled for problematic PB item?

Path Breadcrumbs Home link setting

I can't reproduce this bug.

FranCarstens’s picture

I'm using a subtheme of Omega4. It appears Omega's breadcrumb.theme.inc overrides the theme settings for path breadcrumbs. Removing or renaming this file fixes the problem.

corbacho’s picture

I can't replicate. But I was expecting that "home link settings" affect all breadcrumbs, not only the ones set up via path_breadcrumb module.

Bootstrap theme has something similar to this:

function YOURTHEME_preprocess_breadcrumb(&$variables) {
  $breadcrumb = &$variables['breadcrumb'];
   array_shift($breadcrumb);
}

So what it does, is to remove the first breadcrumb (the "home" link) for all the breadcrumbs. But you have to remember to keep Home enabled in path breadcrumb settings. You don't want to remove useful breadcrumbs

markhalliwell’s picture

danny englander’s picture

I ran into this same issue in a custom theme and following the suggestion in #6 fixed it for me. Thanks!