From 154865c46c1ece5960cbeb9114e798e6bf2475a4 Mon Sep 17 00:00:00 2001 From: matheusgnreis Date: Tue, 22 Aug 2023 10:54:56 -0300 Subject: [PATCH] chore(the-product): chrome and safari doesnt support a clone from urlsearchparams --- @ecomplus/storefront-components/src/js/TheProduct.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@ecomplus/storefront-components/src/js/TheProduct.js b/@ecomplus/storefront-components/src/js/TheProduct.js index ee320f8ad..8fff0762c 100644 --- a/@ecomplus/storefront-components/src/js/TheProduct.js +++ b/@ecomplus/storefront-components/src/js/TheProduct.js @@ -427,7 +427,7 @@ export default { searchParams.set('variation_id', variationId) window.history.pushState({ pathname, - searchParams + param: searchParams.toString() }, '', `${pathname}?${searchParams.toString()}`) this.showVariationPicture(this.selectedVariation) }