WooCommerce has added this setting in the default settings. Go to WooCommerce > Settings > Products > General >  Redirect to the cart page after successful addition. Enable this