Redirect user after login

I’d like to redirect users to different pages after login based on their user role.