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 sorting existing query params in URL when sort option is false #265

Merged
merged 4 commits into from Jun 11, 2020
Merged

Fix sorting existing query params in URL when sort option is false #265

merged 4 commits into from Jun 11, 2020

Conversation

dpatwardhan
Copy link
Contributor

@dpatwardhan dpatwardhan commented Jun 9, 2020

Fixes #264 .

Bug is fixed by passing the options object received in the stringifyUrl function to the internal use of parse function. Don't know if this could have other repercussions, but all tests passed that currently pass on master.

@sindresorhus sindresorhus changed the title Fix sorting of existing query params in a URL when sort flag is set to false Fix sorting of existing query params in a URL when sort option is set to false Jun 10, 2020
index.js Outdated Show resolved Hide resolved
sindresorhus and others added 2 commits June 11, 2020 13:49
Co-authored-by: Deepak S Patwardhan <deepak.patwardhan@outlook.com>
@sindresorhus sindresorhus changed the title Fix sorting of existing query params in a URL when sort option is set to false Fix sorting existing query params in URL when sort option is false Jun 11, 2020
@sindresorhus sindresorhus merged commit 549d677 into sindresorhus:master Jun 11, 2020
@dpatwardhan dpatwardhan deleted the issue-264 branch June 11, 2020 06:53
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.

Existing query params in URL get sorted even when sort is disabled for stringifyUrl
2 participants