--- site_map.module 2008-02-08 08:21:59.000000000 +0100 +++ site_map.new.module 2008-03-30 10:52:59.000000000 +0200 @@ -498,7 +498,7 @@ function _site_map_taxonomy_tree($vid, $ $output .= l($term->name, taxonomy_term_path($term), array('title' => $term->description)); } else { - $output .= l($term->name, "taxonomy/term/$term->tid/$cat_depth", array('title' => $term->description)); + $output .= l($term->name, $cat_depth == "all" ? taxonomy_term_path($term) : "taxonomy/term/$term->tid/$cat_depth", array('title' => $term->description)); } } else {