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

Sorting non-existent params removes ? from URL #2495

Merged
merged 1 commit into from Jun 11, 2019

Conversation

2 participants
@justjavac
Copy link
Contributor

commented Jun 11, 2019

const url = new URL("http://example.com/?")
url.searchParams.sort()

// current
url.href === "http://example.com/?"
url.search === "?"

// after fixed
url.href === "http://example.com/"
url.search === ""
@ry

ry approved these changes Jun 11, 2019

Copy link
Collaborator

left a comment

LGTM

@ry ry merged commit 0efb7c2 into denoland:master Jun 11, 2019

3 checks passed

Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
license/cla Contributor License Agreement is signed.
Details

@justjavac justjavac deleted the justjavac:url-search-params-updating branch Jun 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.