The FAQ module uses a path like "faq/xyz" where "xyz" is the taxonomy term for that category of questions. I'm no expert on Pathauto, but I have tried under "category path settings" to set "Pattern for all FAQ_categories paths" to "faq/[cat-raw].htm" and it is not generating an alias (set to generate & replace). What do I need to correctly do to make something like this happen?

CommentFileSizeAuthor
#5 pathauto_path.patch448 bytesnancydru

Comments

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

That should be it. Note that pathauto only generates aliases when 1) you create a taxonomy term 2) you do a bulk generate and don't currently have aliases for a term.

Can you create a new taxonomy term? Does that new term get aliased?

If you did create a new term and no alias was created, are you generating taxonomy terms via the admin/content/taxonomy forms or doing it programatically in code?

nancydru’s picture

After deleting ALL taxonomy URL aliases, I bulk updated.

Pattern for all FAQ paths: faq/[cat-raw].htm

Indeed it created an alias of "faq/about_us.htm" for "taxonomy/term/28". However, the FAQ vocabulary is owned by the FAQ module, so the actual correct taxonomy_term_path should be "faq/28" not "taxonomy/term/28". I can absolutely guarantee that calling taxonomy_term_path returns the correct string.

The problem here is that the "dst" column is built correctly but the "src" column is not.

greggles’s picture

When you say that "faq vocabulary is owned by the FAQ module" do you mean that the faq module provides a listing for the taxonomy pages like the image gallery and forum modules do?

There is some support (though it is mildly broken, currently) for modules like image gallery and forum which have their own taxonomy alias pages. Perhaps you can look at the various image gallery issues in the queue and see if the problems described there are the same as your issue?

nancydru’s picture

If the vocabulary table has an entry in the "module" column, taxonomy_term_path passes control to hook_term_path so that module can correctly build the path to the module's processing routine.

My vocabulary table has "faq" in that column and I have a "faq_term_path" that would correctly return "faq/28" for the "src" column. That's what I mean "owned by."

And yes, I have looked at the issues for Pathauto and yes, there is at least one that sounds pretty much identical. However, I just downloaded this module a day or two ago and the problem is still there - at least as far as FAQ goes.

nancydru’s picture

Assigned: Unassigned » nancydru
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new448 bytes

It's a one-liner.

nancydru’s picture

Category: support » bug

Might as well call it a bug now.

greggles’s picture

If you could find which one is the duplicate and post this there, that would be great. Otherwise if this change goes in from this issue then it is unlikely to get testing from the people who really care about image galleries and forums etc. Thanks.

greggles’s picture

Status: Needs review » Closed (duplicate)

I guess it's a duplicate of http://drupal.org/node/188606 then...