Question re BuddyPress URLs - why numbers in some and not in others?

Can you tell me please why some of my Buddypress groups have numbers in the URLs and others do not. Examples:

/bpgroups/social-group-547668396/ compared to
/bpgroups/daily-devotions/
or
/bpgroups/movie-reviews-1228730746/ compared to
/bpgroups/women-only/

Can I remove the numbers from these URLs or will it destroy everything?
Thanks

  • Rupok

    Hi Mary

    Hope you had a beautiful day.

    BuddyPress adds a random number like this when you have more than one group with same name. Let me describe.

    Suppose you have a group with name "First People". In that case the group URL will be "http://example.com/bpgroups/first-people". Now if you create another group with the same name "First People" (maybe for testing purpose, or for other purpose, or by mistake), then the group URL will be "http://example.com/bpgroups/first-people-XXXXXXX" for the new group. XXXXXXXX represents some random number.

    Important thing is, now you have two groups with same name "First People". What will happen to the URL if you create a third group with same name? If you delete the group you created at first, then the URL for the third group will be ""http://example.com/bpgroups/first-people" again because this URL is available now.

    So most probably, in your site, for those two groups, other two groups with same name existed. That's why they have numbers in their URL.

    For example, I logged in with Support Access and didn't find any other group named "Social Group". So now if you create a group with name "Social Group" again, the URL will be "/bpgroups/social-group/ "

    Can I remove the numbers from these URLs or will it destroy everything?

    I just searched to find a proper way to change group URL (removing the numbers from these URLs) but I didn't find any. As groups links are used in many places inside BuddyPress, they don't have any native way to change group URL and chances are high that it may destroy lots of things.

    Please let us know if you have any further confusion. We will be glad to help.

    Have a nice day. Cheers!
    Rupok

    why some of my Buddypress groups have numbers in the URLs and others do not

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.