BuddyDev

Search

Usernames

  • Participant
    Level: Initiated
    Posts: 14
    Mark on #13027

    Hello, I have asked this question at buddypress but I have not received an answer.

    I am trying to insert the @ character in to user profile urls as medium.com does, ie medium.com/@username.

    Is there a way to do this without the user having to put the @ in at registration etc.

    Thankyou for your help.

  • Keymaster
    (BuddyDev Team)
    Posts: 24645
    Brajesh Singh on #13035

    Hi Mark ,
    It is doable.

    1. We need to add a filter to strip the @ from the URI while parsing.
    2. We will need to make sure that the canonical redirect does not redirect to old urls

    3. We will need to filter the functions like bp_loggedin_user_domain() and other such functions to use the new url.

    This is how it needs to be handled in current BP.

    I won’t be able to test it with code today and tomorrow due to my schedule(This code needs attention), but I can help on Tuesday if you want.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 14
    Mark on #13038

    Yes thankyou Brajesh.

You must be logged in to reply to this topic.

This topic is: not resolved