Is there any documentation on this?

Joanzo - October 15, 2008 - 01:26
Project:Taxonomy Redirect
Version:5.x-1.3
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

is there any documentation on this ?
or any tutorial how to use taxonomy redirect?
cause i have no idea how to use it?

i try to redirect from www.mysite.com/taxonomy/44/all to
www.mysite.com/recipes-by-cuisine/french

what should i do?
i've tried to select vocabulary cuisine
and select French for the second list

and for filter, i use plain text
at the Enter path i write : recipes-by-cuisine/french
i leave the other blank

and it's not working, is there something wrong? please help me..

#1

chellman - October 15, 2008 - 06:11

I'm trying this on a Drupal 5.11 installation, and it doesn't seem to work for me either. It seems like the redirect just isn't happening.

Am I correct that I'm supposed to be able to load /taxonomy/term/3, and get redirected to /whatever/i/choose? It looks like the substitution is working, and taxonomy_redirect_term_path is returning the correct value, but the redirect isn't happening. I'm wondering if I'm missing something.

#2

Justin W Freeman - October 16, 2008 - 00:34

Hi,

One thing to note about taxonomy redirect is that it only uses hook_term_path (http://api.drupal.org/api/function/hook_term_path/6) to modify paths for taxonomy terms, it doesn't actually create path aliases.
This means the redirect only works for taxonomy links placed by the taxonomy module. It also means if you type the url in to your browser the redirect doesn't work.
On this topic you might want to follow any progress on this issue #258146: Can we disable the old taxonomy menu path with this module.

Does this explain why your redirects aren't working or are all the taxonomy links not working either?

Your usage seems to be correct.

We will put together some documentation in the next few days though.

#3

chellman - October 16, 2008 - 14:52

Thanks for the clarification. I misunderstood how this was working, but it did become clear after some further work on the site I'm building.

I was actually expecting this module to use drupal_goto() instead of a path alias because of the module's name, and I think I'd prefer that anyway. If I want path aliases for taxonomy terms, I can just use pathauto. What do you think? I can work on a patch for it if that's of interest.

#4

Joanzo - October 22, 2008 - 01:35

Yes i misunderstood too, it actually works !!, but if i combine with sitemap module, and i choose the taxonomy, it's not work again
because it's added /all in all taxonomy terms i.e taxonomy/13/all
If just want to redirect a path, just use path redirect

#5

chellman - October 22, 2008 - 07:18

If just want to redirect a path, just use path redirect

Just for the record, path_redirect works on static paths. It has no notion of wildcards like this module does.

#6

Justin W Freeman - March 16, 2009 - 03:19
Status:active» closed

Closing

#7

mkdi - May 17, 2009 - 11:57

Apologies, didn't realise that the issue was closed,

 
 

Drupal is a registered trademark of Dries Buytaert.