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

justjavac
Copy link
Contributor

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

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

// after fixed
url.href === "https://example.com/"
url.search === ""

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM

@ry ry merged commit 0efb7c2 into denoland:master Jun 11, 2019
@justjavac justjavac deleted the url-search-params-updating branch June 11, 2019 04:44
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