The tokens "menu-trail-parents-raw" and "menu-trail-parents" include forward slashes - good thing. But the pathauto module removes all slashes from tokens unless their names include something like "path", "path-raw" or "alias".

Therefore, I suggest the following "patch" in menutrails.module:

- rename all tokens "menu-trail-parents-raw" to "menu-trail-parents-path-raw"
- rename all tokens "menu-trail-parents" to "menu-trail-parents-path"

That makes it compatible with pathauto. (Slashes / will no longer be stripped. Look at function pathauto_clean_token_value in pathauto.inc to see why.)

Thanks for taking the time to improve on this.

Comments

webflo’s picture

thx. i fixed my menutrails module :)

qbnflaco’s picture

Great, this is working for me however, for some reason, the node isn't using the aliased alias for the term...

for example the term is aliased as
- news/sports
but the node is being aliased as
- taxonomy/term/1/title-of-node

maybe since the node alias is running before the term alias?

sun’s picture

Status: Active » Closed (duplicate)

Marking as duplicate of #368071: Slashes stripped from Pathauto tokens. Please test the patch over there.