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

[Theme] Fix querystring after localization redirect #4453

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

frandiox
Copy link
Contributor

WHY are these changes introduced?

Closes https://github.com/Shopify/develop-advanced-edits/issues/328
Closes https://github.com/Shopify/develop-advanced-edits/issues/303 (already fixed in #4447)

WHAT is this pull request doing?

The localization form/links are adding return_to: /?_fd=0&pb=0 to its FormData.

image

This change removes these query params from the Location header before forwarding it to the browser.

cc @Shopify/advanced-edits

Copy link
Contributor

We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset.
If the changes are user-facing, run "pnpm changeset add" to track your changes and include them in the next release CHANGELOG.

Copy link
Contributor

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
73.01% (+0.01% 🔼)
8390/11491
🟡 Branches
69.58% (+0.02% 🔼)
4092/5881
🟡 Functions 71.75% 2179/3037
🟡 Lines
73.36% (+0.01% 🔼)
7939/10822

Test suite run success

1889 tests passing in 857 suites.

Report generated by 🧪jest coverage report action from 09f5c3d

@frandiox frandiox added the #gsd:40767 Fortify local development experience for Liquid themes label Sep 17, 2024
Copy link
Contributor

@karreiro karreiro left a comment

Choose a reason for hiding this comment

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

Thank you, @frandiox! Great investigation, I had tested this one yesterday, but missed the approve button :)

@isaacroldan isaacroldan merged commit f6b5256 into main Sep 18, 2024
37 checks passed
@isaacroldan isaacroldan deleted the fd-fix-localization-querystring branch September 18, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#gsd:40767 Fortify local development experience for Liquid themes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants