Hi gwu, just checked. We have a bug in the template.
Please open your theme/blogin/login.php
and change this
<form name="loginform" id="loginform" action="<?php echo site_url('login', 'login_post') ?>" method="post">
to
<form name="loginform" id="loginform" action="<?php echo site_url(BP_LOGIN_SLUG, 'login_post') ?>" method="post">
For redirect url , please check the plugin BPdev logout redirect or you may want to use the following code
add_filter('logout_url',"bpdev_bp_logout_url",110,2);
function bpdev_bp_logout_url( $logout_url, $redirect) {
$redirect="where u want to redirect, complete url" ;//e.g. http://yoursite.com/logoutpage
$args = array( 'action' => 'logout' );
if ( !empty($redirect) ) {
$args['redirect_to'] = $redirect;
}
$logout_url = add_query_arg($args, site_url('wp-login.php', 'login'));
$logout_url = wp_nonce_url( $logout_url, 'log-out' );
return $logout_url;
}
Hope that helps.