I've been trying to redirect users to the profile page when accessing profiles of users and self. Currently it's redirecting to activity page by default.
Eg: example.com/members/username
is showing the activity page as default.
I've tried setting the below line in wp-config.php as suggested in Buddypress forum. But doesn't seem to be working.
define('BP_DEFAULT_COMPONENT', 'profile');
Is there any workaround to implement this, instead of profile all the other links(friends, groups, notifications etc.) are working when setting in BP_DEFAULT_COMPONENT.