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

fix(OpenInCodeSandboxButton): preserve ?file= param for big sandboxes #357

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

sophiebits
Copy link
Contributor

What kind of change does this pull request introduce?

Ensure that the current file stays selected even if the URL is too long and we switch to a form.

What is the current behavior?

The file= param is set only if paramsValues.length < 1500.

What is the new behavior?

It's consistently set, so the right file is opened in the new sandbox.

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

[I wrote this in the GitHub web editor. Hoping to test the sandbox on this PR.]

Checklist

  • Documentation [N/A]
  • Tests [I didn't see any for this feature]
  • Ready to be merged

sophiebits and others added 2 commits February 4, 2022 14:07
Ensure that the current file stays selected even if the URL is too long and we switch to a form.
@danilowoz danilowoz changed the title OpenInCodeSandboxButton: preserve ?file= param for big sandboxes fix(OpenInCodeSandboxButton): preserve ?file= param for big sandboxes Feb 7, 2022
@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 7, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit a58184d:

Sandbox Source
Sandpack Blog Example 1 Configuration

@danilowoz
Copy link
Member

Thanks a lot, @sophiebits, just did a few tweaks (prettier & eslint), but it looks good to me!

@danilowoz danilowoz merged commit 85f126d into codesandbox:main Feb 7, 2022
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