Pathauto fails to accurately create an alias for a group node when the Group node type URL alias settings are "group/[ogname-raw]". Instead of creating a URL such as http://www.site.xyz/group/group-name-here the alias is set to just http://www.site.xyz/group with no raw group name token replacement. This creates alias conflicts with Organic Groups default /group path, and of course will create conflicts with all future group automated alias actions because it's a static path.
Software configuration:
Drupal 6.10
Organic Groups 6.x-1.1
Pathauto 6.x-1.1
Pathauto settings for Group node types:
Default path pattern for Group (applies to all Group node types with blank patterns below): group/[ogname-raw]
I believe the desired action is for Pathauto to create a URL such as www.site.xyz/group/group-name-here based on the documentation for the [ogname-raw] token and Pathauto's behavior with other content types.
Note: Pathauto is working correctly for other content types such as a content type Group Wiki Post set to "[ogname-raw]/[nid]". Pathauto is also working correctly for Group node types if set to "group/[nid]" so the problem seems to be isolated to the use of "group/[ogname-raw]" for some reason.
| Comment | File | Size | Author |
|---|---|---|---|
| pathauto_notes_1.png | 11.98 KB | dilvish |
Comments
Comment #1
dave reidDoesn't [title-raw] work since the group name is the node title?
Comment #2
crosendahl commentedThanks, Dave. That fixes the problem for me. You're right, the group name is the title of the group name node.
Much appreciated.
Comment #3
R.Hendel commentedHi,
the workaround ist working only for groups by themself, not for group-content.
e.g. it won't work, if OG-Content of nodetype "article" should follow this pattern: group/[ogname-raw]/[titel-raw].
Generated URLs will be group/article - name of group will be missing.
It would be nice, if this could be fixed.
Best regards in advance,
Ralf
Comment #4
p_alexander commentedSo, to sum: original poster's issue is by design (group nodes aren't members of themselves, you need to use title)
R.Hendel's issue: This is a likely a problem in OG, fixed in 2.x dev: #494778: ogname-raw token typo