From cd26441c7685bf28d0df497a1ab5feaa852985c4 Mon Sep 17 00:00:00 2001 From: Malith Senaweera Date: Fri, 15 Dec 2023 10:06:06 -0600 Subject: [PATCH] Remove URL params from woopay_source_url --- .../components/woopay/save-user/checkout-page-save-user.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/components/woopay/save-user/checkout-page-save-user.js b/client/components/woopay/save-user/checkout-page-save-user.js index 8edd7c583d4..db38c5748c5 100644 --- a/client/components/woopay/save-user/checkout-page-save-user.js +++ b/client/components/woopay/save-user/checkout-page-save-user.js @@ -73,7 +73,9 @@ const CheckoutPageSaveUser = ( { isBlocksCheckout } ) => { ? {} : { save_user_in_woopay: isSaveDetailsChecked, - woopay_source_url: window.location.href, + woopay_source_url: window.location.href.split( + '?' + )[ 0 ], woopay_is_blocks: true, woopay_viewport: `${ viewportWidth }x${ viewportHeight }`, woopay_user_phone_field: { @@ -291,7 +293,7 @@ const CheckoutPageSaveUser = ( { isBlocksCheckout } ) => {