--- taxonomy_redirect_old.module	2007-11-19 01:50:39.000000000 -0500
+++ taxonomy_redirect_new.module	2007-12-26 17:59:51.031250000 -0500
@@ -13,7 +13,14 @@ function taxonomy_redirect_term_path($te
 }
 
 function taxonomy_redirect_default_term_path($term, $path) {
-  return t($path, array('!tid' => $term->tid, '!name' => $term->name));
+  $parents = taxonomy_get_parents_all($term->tid);
+  $catpath = '';
+  foreach ($parents as $parent) {
+  // Replace any / characters in individual terms which might create confusing URLs
+  $catpath = $parent->name .'/'. $catpath;
+  }
+
+  return t($path, array('!tid' => $term->tid, '!name' => $term->name, '!path' => $catpath));
 }
 
 function taxonomy_redirect_help($section) { 
