Hi, since upgrading to Pathauto 5.x-2.0-beta2 (Token 5.x-1.8 also installed and enabled) I'm experiencing problems with the usage of [catpath] in my generated aliases. The generated taxonomy tree alias is separated by - instead of /. (vocab/parentterm-childterm-childterm/nodetitle)

The pattern used is [vocab]/[catpath]/[title] (for my node-paths)

Please advice, cassius

Comments

Athemis’s picture

I've got the same problem with beta2. In my case this only occurs, when transliteration is activated. Sounds quite similar to #148804. Perhaps a duplicate?

Anonymous’s picture

(I might have missed something?) In some ways the descriptions of the issues in that thread are similar to this issue, but the solutions presented seems to relate to characters within the term name, ie. term names being generated in the wrong way.

Anonymous’s picture

I have tried the two patches listed at http://drupal.org/node/148804#comment-279606 and http://drupal.org/node/162740#comment-283838 but none of them solves my problem, the generated [catpath] still produce URL-aliases such as parentterm-subterm1-subterm2/title-of-node instead of parentterm/subterm1/subterm2/title-of-node

Anonymous’s picture

Is this a new "feature"?

nexus7’s picture

Same problem (vocab/parentterm-childterm-childterm) with [vocab]/[catpath] and transliteration active... (google sitemap is driving me mad...:D )

greggles’s picture

Status: Active » Needs review

@cassisus - this is not a new feature, but a regression in this BETA version.

I believe the solution if you have transliteration enabled is to remove

- // Preserve alphanumerics, everything else becomes a separator.
- $pattern = '/[^a-zA-Z0-9]+/ ';
- $output = preg_replace($pattern, $separator, $output);

Of course then any punctuation will slip through and become quite ugly information in the URL... :(

I've got a fix for that which I hope to release on Tuesday.

kecinzer’s picture

Any progress in this?
I tryed latest dev. version and still problem with "/" - "-".

greggles’s picture

Status: Needs review » Closed (duplicate)

It's in this issue: http://drupal.org/node/143831

And no, no real update yet.