Index: custom_breadcrumbs.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/custom_breadcrumbs/custom_breadcrumbs.module,v
retrieving revision 1.6.2.5.2.10
diff -u -r1.6.2.5.2.10 custom_breadcrumbs.module
--- custom_breadcrumbs.module	30 May 2009 22:02:07 -0000	1.6.2.5.2.10
+++ custom_breadcrumbs.module	8 Jun 2009 00:18:02 -0000
@@ -289,6 +289,12 @@
  *   The desired URI and/or special identifier
  */
 function _custom_breadcrumbs_create_crumb($title, $original_path) {
+  // Checked for named anchor #fragment, and strip it out. Then replace it below.
+  $options = array();
+  if (strpos($original_path, '#') !== FALSE) {
+    list($original_path, $fragment) = explode('#', $original_path, 2);
+    $options = array('fragment' => $fragment);
+  }
   list($identifier, $path) = explode("|", $original_path, 2);
   // decode title to properly handle special characters
   // Suggested by aangle http://drupal.org/node/318272
@@ -297,11 +303,11 @@
     switch ($identifier) {
       case '<pathauto>':
         if (module_exists('pathauto')) {
-          $crumb = l(t($title), pathauto_cleanstring($path, FALSE));
+          $crumb = l(t($title), pathauto_cleanstring($path, FALSE), $options);
         }
         break;
       default:
-        $crumb = l(t($title), $original_path);
+        $crumb = l(t($title), $original_path, $options);
     }
   }
   else { // This may be just be a single identifier
@@ -310,7 +316,7 @@
         $crumb = check_plain(t($title));
         break;
       default:
-        $crumb = l(t($title), $original_path);
+        $crumb = l(t($title), $original_path, $options);
     }
   }
   return $crumb;
