Fixed redirecting issue for WooCommerce.