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

No direct way to update query strings #353

Closed
sravshan opened this issue Aug 15, 2017 · 2 comments
Closed

No direct way to update query strings #353

sravshan opened this issue Aug 15, 2017 · 2 comments
Labels

Comments

@sravshan
Copy link

The current version of URI.js supports removing query string and adding query strings. It would be nice to have the option to update query string as well rather than having to remove existing one (removeQuery()) and add it with new value (addQuery()).

@rodneyrehm
Copy link
Member

setQuery is not what you're looking for?

@sravshan
Copy link
Author

sravshan commented Aug 17, 2017

Looks like it is. I didn't read the documentation thoroughly. Thanks!

And I was searching for update assuming there would be an option to update the query params (would be nice if updateQuery can be an alias).

I am going to close the issue. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants