Skip to content

Commit

Permalink
Remove URL params from woopay_source_url
Browse files Browse the repository at this point in the history
  • Loading branch information
malithsen committed Dec 15, 2023
1 parent 1dbd05e commit cd26441
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/components/woopay/save-user/checkout-page-save-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -291,7 +293,7 @@ const CheckoutPageSaveUser = ( { isBlocksCheckout } ) => {
<input
type="hidden"
name="woopay_source_url"
value={ window.location.href }
value={ window.location.href.split( '?' )[ 0 ] }
/>
<input
type="hidden"
Expand Down

0 comments on commit cd26441

Please sign in to comment.