BuddyPress redirecting to home page on login [closed]

remove_filter( 'login_redirect', 'bp_core_login_redirect' );

If you place this in your functions.php the default login redirect from WordPress is used. So if you go to /wp-admin/ then you will be redirected to /wp-admin/.