Hello,
I am trying to set up ‘following’ as the default submenu activity for the Activity stream. While I manage to do it using the following code:
function set_up_default_submenu() {
bp_core_new_nav_default([
'parent_slug' => 'activity',
'screen_function' => 'bp_activity_screen_my_activity',
'subnav_slug' => 'following',
]);
}
add_action( 'bp_setup_nav', 'set_up_default_submenu', 12 );
The issue is that the submenu links have a problem. The previous default submenu still points to /members/username/activity/
and not to /members/username/activity/just-me/
as it now should. This causes a mixup problem between the new and previous default subnav. Any ideas?