When using a module that rewrites the taxonomy term path (eg http://drupal.org/project/taxonomy_redirect ), the vocabindex module still uses the standard drupal link (taxonomy/term/-tid-).
This is solved by using
taxonomy_term_path(taxonomy_get_term($tid));
instead of
drupal_get_path_alias(url('taxonomy/term/' . $tid));
in the function vocabindex_term_get_path() in the file vocabindex.view.inc
greetz,
Wim
| Comment | File | Size | Author |
|---|---|---|---|
| term_url.patch | 417 bytes | Cauliflower |
Comments
Comment #1
xanoWhat about a combination? This checks for modified term paths first and path aliases second and only returns the taxonomy default path if none of the two checks returned a modified path or an alias.
Comment #2
xanoThis would be even better:
Comment #3
xanoFixed and committed to 5.x-2.x-dev, 6.x-2.x-dev and 7.x-2.x-dev.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
xano