Needs review
Project:
Group
Version:
8.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2017 at 11:17 UTC
Updated:
18 Feb 2024 at 14:34 UTC
Jump to comment: Most recent
pathauto module to create URL alias automatically is not working for all content types, only for membership
even though there's a provided Pattern:
group/[group_content:group:id]/[group_content:pretty-path-key]/[group_content:id]
what i have in the list is only:
/group/1/member/1 /group/1/content/1
/group/1/member/2 /group/1/content/2
/group/1/member/3 /group/1/content/3
and so on
but not for Articles, Basic Page, etc
any idea why?
Thanks,
Thomas
Comments
Comment #2
rachel_norfolkThat pathauto pattern is for the GroupContent entity, one of which exists for each ContentEntity added. But it doesn’t create a pattern for the node entity itself - you need to add one for that if you want one.
Comment #3
thomas.lie commentedThank you for your reply @rachel_norfolk
Yes, what I meant was pathauto didn't create url alias for Articles, Basic Pages that are already put in the group (related entities), but somehow it does make pattern for group members (users that are related to the group).
So do I still have to do it manually for articles & basic pages in the group?
if Yes, would you have examples how to do it....
Comment #4
maxilein commentedpathauto creates aliases only upon saving a node ...
Comment #5
fdverwoerd commentedHow would I create a nice path for the following situation:
I have a group-type called 'game'. Each game would have the path:
/game/<mario>I want to have a path for the related artice, like:
/game/<mario>/articles/<node-title-url>Is this possible?
Comment #6
rachel_norfolkThe change we got into Drupal 8.4 at https://www.drupal.org/node/2810097 might help a lot here.
Comment #7
maxilein commentedComment #8
mithenks commentedComment #9
thejimbirch commentedCheck out the patch in:
https://www.drupal.org/project/group/issues/2774827
It exposes a token for the Group in the Content Pathauto pattern.
This is a pretty old issue, but I think this could be closed as a duplicate of #2774827
Comment #10
hydra commentedI had a similar issue and created https://www.drupal.org/project/group_relationship_tokens for that, maybe this could help here.