Sometimes, it might be necessary to redirect users to some page other than the dashboard. In the example below, users are redirected to their profile page when they log in.
add_filter( 'login_redirect', 'redirect_to_profile', 10, 2 );
function redirect_to_profile( $redirect_to, $user ) {
    return admin_url('profile.php');
}