This is all managed in Settings > Login/logout redirects. to „Yes“ at the bottom of the Settings > Login/Logout redirects page in the WordPress admin panel..