Closed (duplicate)
Project:
Menu Trails
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
25 Apr 2009 at 08:45 UTC
Updated:
8 Sep 2017 at 10:09 UTC
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
Comment #1
webflo commentedthx. i fixed my menutrails module :)
Comment #2
qbnflaco commentedGreat, 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?
Comment #3
sunMarking as duplicate of #368071: Slashes stripped from Pathauto tokens. Please test the patch over there.