Any user that is not an admin is not being redirected to the defined URL with an instance of wp_login_form()
.
$args = array(
'echo' => true,
'redirect' => site_url( '/chat/' ),
'form_id' => 'loginform',
'label_username' => __( 'Username' ),
'label_password' => __( 'Password' ),
'label_remember' => __( 'Remember Me' ),
'label_log_in' => __( 'Log In' ),
'id_username' => 'user_login',
'id_password' => 'user_pass',
'id_remember' => 'rememberme',
'id_submit' => 'wp-submit',
'remember' => true,
'value_username' => NULL,
'value_remember' => false );
wp_login_form( $args );
When I log in as an admin, it works fine. When I use a test subscriber or editor account, it redirects to the home page.