Rewrite taxonomy_term_reference urls to read /taxonomy/term/(name) After creating a view to allow /taxonomy/term/(name) to show content tagged with that term, I am trying to find where I can override the generation of field links (field_type_taxonomy_term_reference) so that they create links following this format. Currently they still show the id number for the term at the end. I have tried (mytheme)_preprocess_taxonomy_term and altering $variables['term_url'] but that hasn't worked. Can anyone please give me any pointers about how to do this, I am running out of ideas.

Any thoughts welcome.

Cheers
Paul
You should be able to set URL aliases for your taxonomy terms using the Path module that comes with Drupal core. (EDIT: As mentioned by jordojuice, you'll also need the Pathauto module to automatically generate these patterns in the manner I instruct below).


Go to the Configuration menu and select "Url Aliases" in the "Search and Metadata" section. (admin/config/search/path)
In the upper tab of the URL Aliases menu, select "Patterns." Here you can set the path to your taxonomy terms to whatever you'd like.


The only problem is that I don't think Views overwrites the URLs generated. There was a module for this in Drupal 6, but I don't think there is anything similar for D7.

There is a View that comes default in Views that should overwrite the default taxonomy paths; you could see what it does and try to tweak it.