Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discount route query params support #766

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

lneicelis
Copy link
Contributor

@lneicelis lneicelis commented Apr 7, 2023

WHY are these changes introduced?

Current example of discount path is not backwards compatible with discount route of regular liquid storefront because it drops all the query params and does not forward any of them to the redirect location. This introduces breaking changes for shops that want to migrate from liquid storefronts to custom storefronts powered by Hydrogen.

WHAT is this pull request doing?

Drops redirect and redirect_to query params and forwards the rest to the redirect location.

HOW to test your changes?

Post-merge steps

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

@lneicelis lneicelis self-assigned this Apr 7, 2023
Copy link
Contributor

@juanpprieto juanpprieto left a comment

Choose a reason for hiding this comment

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

👍🏼

@lneicelis lneicelis merged commit ab45234 into 2023-01 Apr 12, 2023
@lneicelis lneicelis deleted the discount-route-query-params-support branch April 12, 2023 07:31
@github-actions github-actions bot mentioned this pull request Apr 12, 2023
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