BuddyDev

Search

buddyblog incompatibility between BP_DEFAULT_COMPONENT and BP_BUDDYBLOG_SLUG

  • Participant
    Level: Initiated
    Posts: 3
    Shayne on #23263

    You can’t define both of these at the same time

    
    define( 'BP_BUDDYBLOG_SLUG', 'blog' );
    define('BP_DEFAULT_COMPONENT', 'blog' );
    

    BP_BUDDYBLOG_SLUG works. But if you try and define BP_DEFAULT_COMPONENT to the new buddyblog slug, it won’t work. It will redirect the user to his/her profile instead of the defined default_component. If i don’t define BP_BUDDYBLOG_SLUG, and set BP_DEFAULT_COMPONENT to ‘buddyblog’ then it correctly redirects the user to the defined default component.

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #23269

    Hi Shayne,
    Thank you for reporting.
    This seems like a bug in BuddyPress.

    I tested with

    
    define( 'BP_FRIENDS_SLUG', 'alpha' );
    define( 'BP_DEFAULT_COMPONENT', 'alpha' );
    
    

    and I got the same result. Changing the name does not work as expected.

    I can certainly look into it but I will need some time before I can. In the meantime, you may want to report it on BuddyPress trac.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 3
    Shayne on #23302

    Thanks Brajesh. I will report it on Buddypress as well.

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #23312

    Thank you.

You must be logged in to reply to this topic.

This topic is: not resolved