From bb485918bc8e6df444729ef1e894a065a67e5192 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 27 Oct 2021 15:47:33 -0300 Subject: [PATCH] de periferica: las redirecciones por turbo generan errores de cors --- _packs/controllers/cart_payment_methods_controller.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/_packs/controllers/cart_payment_methods_controller.js b/_packs/controllers/cart_payment_methods_controller.js index e6b5217..81d2e05 100644 --- a/_packs/controllers/cart_payment_methods_controller.js +++ b/_packs/controllers/cart_payment_methods_controller.js @@ -80,10 +80,6 @@ export default class extends CartBaseController { if (checkoutUrls.data.length > 0) redirectUrl = checkoutUrls.data[0] - try { - Turbolinks.visit(redirectUrl) - } catch { - window.location = redirectUrl - } + window.location = redirectUrl } }