Skip to content

Conversation

@kdaviduik
Copy link
Contributor

Without this change, if the shop's Online Store primary domain isn't configured correctly and pointing to Shopify, some buyers are unable to checkout successfully.

assert.strictEqual(result.webUrl, cart.checkoutUrl);
});

test('it updates the value of _fd to 0 if it is present but with a different value', () => {
Copy link
Contributor

@juanpprieto juanpprieto Jun 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, I'd add two more tests for completeness:

  1. the url has already other params in it (without _fd)
  2. the url has already other params including _fd

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added! Lines 514-530 in this file

@kdaviduik kdaviduik force-pushed the kd-prevent-redirect branch 2 times, most recently from 1fa0276 to 881ddcd Compare June 17, 2025 21:40
Without this change, if the shop's Online Store primary domain isn't configured
correctly and pointing to Shopify, some buyers can be blocked from checkout.
@kdaviduik kdaviduik force-pushed the kd-prevent-redirect branch from 881ddcd to 4a06672 Compare June 17, 2025 21:41
@kdaviduik kdaviduik merged commit eb90da2 into main Jun 17, 2025
2 checks passed
@kdaviduik kdaviduik deleted the kd-prevent-redirect branch June 17, 2025 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants