Path Aliases
mactoph - March 13, 2007 - 05:15
| Project: | Taxonomy dhtml |
| Version: | 5.x-2.2 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
This is relating to the issue previously raised here:
http://drupal.org/node/39370
Which has been marked 'By design'. Discussion also here:
http://drupal.org/node/39337
http://drupal.org/node/39340
I am just what the reasoning is to providing a link to taxonomy/term/##/0 rather than the path or pathauto defined alias for terms?

#1
I second that.
Taxonomy_dhtml should provide links to vocabulary terms in alignment with the definitions pathauto does.
#2
yes, links should be the same like pathauto links. Anybody have update ?
#3
For me it's working 50/50 because old aliases are change correct but when i add a new node link for categories doesnt work. It looks funny like "mysite.com/%5Bcatpatch%5D"
#4
I was thinking about this fix a long time ago. Can you provide a patch please? I will release it in next "feature" release.
#5
I didnt totally patch this, but here is a change i made to my site to make the 2 modules work together. This patch turns off linking to taxonomy terms all toghther, it either links to a node or it shows the taxonomy term with no link
The patch starts around line 194 (some lines before and after the patch are included)
else if ($term->link){
$link = $term->link;
$output .= "
\n";
} else {
/Patch START (turn off linking to pages with no items
// $link = l(t($term->name), "taxonomy/term/$term->tid/9", array("title" => t($term->description)));
// $output .= "
\n";
$output .= "
\n";
//Patch END
}
}
$output .= str_repeat("
\n", 1+$term->depth);
return $output;
#6
I'll try posting that again
else if ($term->link){
$link = $term->link;
$output .= "<li>$link</li>\n";
} else {
//Patch START turn off linking to pages with no items
// $link = l(t($term->name), "taxonomy/term/$term->tid/9", array("title" => t($term->description)));
// $output .= "<li>$link</li>\n";
$output .= "<li>$term->name (empty)</li>\n";
//Patch END
}
}
$output .= str_repeat("</ul>\n", 1+$term->depth);
return $output;