Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress group slugs in foreign language


  • ishvara
    Participant

    @ishvara

    Hello,

    I encountered an issue with Buddypress group slugs in foreign language.

    When a user registers a BP group with a non-English name then the slug for this new group is created using %-encoding and lower-case characters like mysite.com/groups/%d1%80%d0%be%d1%81%d1%81%d0%b8%d1%8f/

    The issue happens when some user agents and Google in particular are trying to access this URL.

    When I try to fetch this URL as Googlebot from my Google Search Console, I see that Google is trying to access this same URL using upper-case characters like this:
    mysite.com/groups/%D1%80%D0%BE%D1%81%D1%81%D0%B8%D1%8F

    The response Google is getting is:

    HTTP/1.1 301 Moved Permanently
    Location: mysite.com/groups/%d1%80%d0%be%d1%81%d1%81%d0%b8%d1%8f/

    But unfortunately Google is not following this redirect.
    Apparently Google thinks that the URL is redirecting to itself and stops indexing it.

    1. Does anyone know a solution for this issue?
    2. Is’n it making sence to make Buddypress treat such URLs as equal and respond with a proper 200 response instead of 301-redirecting?

    Buddypress behaviour in this case is quite different to how WordPress is handling this same problem. In the case of Worpress requesting a %-encoded URL always produce a 200-response regardless of the case.

    Thanks a million in advance!
    Anton.

Viewing 2 replies - 1 through 2 (of 2 total)

  • ishvara
    Participant

    @ishvara

    Question (or maybe a suggestion) to Buddypress developers:
    I was wondering if it’s possible to apply a filter to
    the returned $slug in groups_check_slug() function
    so that anyone can play with BP group slugs?
    Cheers.


    ishvara
    Participant

    @ishvara

    Anyone?..

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar