When tids are combined for a parent term url (taxonomy/term/10+11+12) to get a listing of all nodes tagged with the child or sub terms of that parent term, pathuato creates an extra alias called 'parent-term0'. This happens when a bulk update is applied to category paths.

This has the following effects on a site:

1.) The original combined url that was aliased does not work
2.) Only the new 'parent-term0' url works
3.) It makes the taxonomy_context generated bread crumbs point to the tids (taxonomy/term/tid) instead of the term name- that is, the actual breadcrumbs are okay, but in the browser status bar, they point to the system url instead of the alias.

Since combining the urls is the only way in Drupal to get a listing of all nodes in a vocabulary on a parent (or index kind of) page, it would be great if the bulk update option did not break it.

Comments

mikeryan’s picture

Assigned: Unassigned » mikeryan
Priority: Critical » Normal

Can you explain a little further? Pathauto creates aliases based on existing terms and vocabularies, it doesn't do anything with extended addresses like the multi-term selection, whether you make use of such links on your site shouldn't affect (or be affected by) pathauto.

Thanks.

venkat-rk’s picture

Thanks for your response. Let me try.

I have vocabs that represent different sections of my site and use a parent term (say, term 1) in each vocab to serve as a kind of index page for that section. There are several child terms in that vocabulary (term 2, term 3, term 4) and some of these child terms have sub -terms (term 5, term 6, term 7).

With the category path settings pattern set to [catpath] and by using taxonomy_context, I am able to get great urls and breadcrumbs that reflect the hierarchy in that vocab all the way down. So far so good.

The trouble happens when I combine tids and construct a url (taxonomy/term/1+2+3+4+5+6+7) for the parent term page (which is aliased, of course) in order to list all the nodes tagged with the child terms and sub terms of that parent term. The nodes are listed alright, but if I then do a bulk update of the category path settings after constructing the combined url, pathauto generates an extra alias for each term in the vocabulary, starting from the parent term and going all the way down.

It would be great if pathauto could:

1.) Recognise a combined url (taxonomy/term/1+2) as a special situation (this is the only way to get a node listing on a parent term page in drupal- it isn't automatically built);
2.) Retain the alias originally given for the parent term (term 1);
3.) Did not generate an additional alias for term 1 (say events-0) even when a bulk update is applied.

The breadcrumbs issue might actually be related to taxonomy_context, but I have a feeling that if pathauto could recognise the combined url and retain the original alias, it just might solve the breadcrumb issue also. Of course, I could be wrong.

mikeryan’s picture

Could've sworn I had replied previously (maybe by email?), but can't find it...


It would be great if pathauto could:

1.) Recognise a combined url (taxonomy/term/1+2) as a special situation (this is the only way to get a node listing on a parent term page in drupal- it isn't automatically built);
2.) Retain the alias originally given for the parent term (term 1);
3.) Did not generate an additional alias for term 1 (say events-0) even when a bulk update is applied.

1. I'm still confused - I assume you're saying that you've created a manual alias pointing to a URL of the form taxonomy/term/1+2, but what would you like pathauto to do about that?

2. Alias originally given how? An alias you explicitly created, or one that pathauto previously created for the parent term?

3. This can be one by setting the Update Action to "Do nothing, leaving the old alias intact".

Actually, I think that last option should address all your issues - if you use the "Do nothing" option, then pathauto should never interfere with any other aliasing you're doing.

venkat-rk’s picture

Strange! I also thought you had responded!! May be it was for another issue.

To answer to your responses:

1.) Yes, I created a manual alias for the combined url.
2.) Alias originally created by pathauto for the parent term
3.) 'Do nothing- leave the old alias intact'- I think you may be right about this. Let me try this and report back.

Meanwhile, I appreciate your taking the time to respond to my queries. And thanks again for a great module.

greggles’s picture

Status: Active » Closed (fixed)

This appears to be closed.

If not please reopen it and state what needs to happen.

Thanks.