You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to remove a specific query parameter. Given an URL like https://domain-name.com/path?param1=value1¶m2=value2¶m3=value3, I'd like to be able to derive an URL without the param2 query parameter, https://domain-name.com/path?param1=value1¶m3=value3 in this case.__
Describe the solution you'd like
I'd like to be able to do this by providing None as the value of the parameter to update_query.
It's possible to do this by grabbing the URLs query dictionary, manipulating it, and replacing the entire query using with_query, but providing this behavior would give a cleaner way to express the operation.
Additional context
No response
Code of Conduct
I agree to follow the aio-libs Code of Conduct
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
I'd like to be able to remove a specific query parameter. Given an URL like
https://domain-name.com/path?param1=value1¶m2=value2¶m3=value3
, I'd like to be able to derive an URL without theparam2
query parameter,https://domain-name.com/path?param1=value1¶m3=value3
in this case.__Describe the solution you'd like
I'd like to be able to do this by providing
None
as the value of the parameter toupdate_query
.Describe alternatives you've considered
This could be done using a separate method, something like
It's possible to do this by grabbing the URLs query dictionary, manipulating it, and replacing the entire query using
with_query
, but providing this behavior would give a cleaner way to express the operation.Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: