Index: custom_breadcrumbs_taxonomy.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/custom_breadcrumbs/custom_breadcrumbs_taxonomy/Attic/custom_breadcrumbs_taxonomy.module,v
retrieving revision 1.1.2.24
diff -u -r1.1.2.24 custom_breadcrumbs_taxonomy.module
--- custom_breadcrumbs_taxonomy.module	22 Oct 2010 15:55:33 -0000	1.1.2.24
+++ custom_breadcrumbs_taxonomy.module	23 Oct 2010 19:19:11 -0000
@@ -189,7 +189,12 @@
     // Set the taxonomy breadcrumb for the view.
     if (isset($view->display) && !empty($view->display)) {
       $curpath = drupal_get_normal_path($_GET['q']);
-      $is_term_page = ((arg(0, $curpath) == 'taxonomy') && (arg(1, $curpath) == 'term'));
+      // A taxonomy term page is any page with path a component 'taxonomy' followed by 'term'.
+      $arg_values = arg(NULL, $curpath);
+      $is_term_page = FALSE;
+      if (($key = array_search('taxonomy', $arg_values)) !== FALSE) {
+        $is_term_page = (isset($arg_values[$key + 1]) && $arg_values[$key + 1] == 'term');
+      }
       foreach ($view->display as $id => $display) {
         // Identify allowed displays for breadcrumb replacement.
         if (!_custom_breadcrumbs_allowed_display($display)) continue;
