Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I am trying to setup a replacement pattern with URL Alias on a vocabulary called 'Media Categories' using the pattern 'media/[term:name]'. However whenever I try and generate the aliases this vocabulary is left unchanged. I have tried changing the pattern to something else like 'edia/[term:name]' and that works, it seems as though it is reserving the 'media/[term:name]' somewhere.

I have tried flushing the cache, deleting the vocabulary and terms and adding them again, however I have still had no success. The only option I have had so far is to manually enter the url alias.

Has anyone come up against something like this before? All I can think of is that 'media/[term:name]' is reserved somewhere...

share|improve this question
    
You may want to check for a duplicate alias. –  Digital Fire Jul 13 '12 at 18:19
    
I think I have tracked it down to view's because I have a view defined for say 'media/orders' then URL Alias won't generate a alias. For some reason I wouldn't have thought a view path would block URL Alias from doing its thing. I am going to test disabling all my views, generating the aliases, then re-enabling the views to see if that cures it. ---- Just to add, this only seems to happen with taxonomy terms. I have defined paths for nodes in views - yet URL Alias seems fine with generating and alias for them. –  inertiahz Jul 13 '12 at 18:52
    
Please post your answer as an answer, thanks. –  Duncanmoo Jul 13 '12 at 20:15
    
Apologies, as my account is new, I had to wait 8 hours before I could answer my question. Done now. –  inertiahz Jul 14 '12 at 14:26
add comment

1 Answer

Ok thanks to Digital Fire, I started checking for other alias conflicts, which I found in my defined views. The problem I had initially was that the URL alias was working with views, however clicking on the link / taxonomy term took you too the default drupal view.

So in order to get the term with an alias working with view's I realised that in the view path use the original link to the taxonomy term instead of the url alias.

Hopefully that makes sense and might help someone else out.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.