Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Fix theme serve to accept parameters with multiple values #2034

Merged
merged 3 commits into from
Feb 9, 2022
Merged

Conversation

karreiro
Copy link
Contributor

@karreiro karreiro commented Feb 9, 2022

WHY are these changes introduced?

When users open URLs with multiple occurrences of the same parameter (?param=A&param=B), they lose one of the values (A or B).

WHAT is this pull request doing?

This PR changes the proxy to no longer convert query parameters into a hash map so users do not lose values anymore.

How to test your changes?

  • Run shopify theme serve
  • Navigate to the collections page
  • Apply multiple filters

Before this PR
before

After this PR
after

Post-release steps

None.

Update checklist

  • I've added a CHANGELOG entry for this PR (if the change is public-facing)
  • I've considered possible cross-platform impacts (Mac, Linux, Windows).
  • I've left the version number as is (we'll handle incrementing this when releasing).
  • I've included any post-release steps in the section above.

@karreiro karreiro requested review from macournoyer, a team, pepicrft and molly-yu and removed request for a team February 9, 2022 11:03
@karreiro karreiro changed the title Fix Theme CLI proxy to accept parameters with multiple values Fix theme serve to accept parameters with multiple values Feb 9, 2022
Copy link
Contributor

@macournoyer macournoyer left a comment

Choose a reason for hiding this comment

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

Awesome 🔥

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple Values Storefront Filtering doesn't work locally via Shopify CLI's Theme Serve
2 participants