--- custom_breadcrumbs.module +++ custom_breadcrumbs.module @@ -524,8 +524,7 @@ // Decode title to properly handle special characters. $title = decode_entities($title); // Collapse double slashes to one. - $original_path = preg_replace('/\/+/', '/', $original_path); // Removing leading and trailing slashes. $original_path = preg_replace('/^\/|\/+$/', '', $original_path); list($identifier, $path) = explode("|", $original_path, 2); @@ -554,7 +555,7 @@ if (!isset($path)) { $path = $original_path; } - $options = parse_url($path); + $options = array('path'=>$path); $options = array_merge($options, $attributes); $crumbs[] = array( 'crumb' => l($title, $options['path'], $options),