diff -u b/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module --- b/modules/toolbar/toolbar.module +++ b/modules/toolbar/toolbar.module @@ -326,7 +326,7 @@ $full_href = $item['link']['href'] . (isset($item['link']['options']['query']) ? '?' . $item['link']['options']['query'] : ''); // Clean up the link destination to prepare a path based CSS class. $class = strtolower(preg_replace('/[^a-z0-9-_]+/i', '-', strtolower($full_href))); - $class = trim(preg_replace('/--+/', '-', $class, '-'), '-'); + $class = trim(preg_replace('/--+/', '-', $class, '-')); // Prefix the path based CSS class. $class = 'path-' . $class; if (toolbar_in_active_trail($item['link']['href'])) {