I added in the link path field for a breadcrumb the following:
"%node:tax-title-for-url-construction" is a custom token which returns a taxonomy title like "Xbox 360" in a cleaner way "xbox-360".
So the links should look like http://domain.com/xbox-360 but it return the following http://domain.com/ xbox-360 Note the space between site url and tax title, but there is no space in the link path field within the breadcrumbs configuration. So where does this space come from?
Here is the code from my custom token:
<?php $node = node_load(arg(1)); $rtaxidarray = field_get_items('node', $node, 'field_plattform'); $rtaxid = $rtaxidarray["tid"]; // taxid sauber $term = taxonomy_term_load($rtaxid); $name = $term->name; $small = strtolower($name); $clean = str_replace(" ", "-", $small); return $clean; ?>