URL operators¶
commons.url_operators
¶
Functions:
| Name | Description |
|---|---|
set_query_param |
Add or update a query parameter in a URL. |
remove_query_param |
Remove a query parameter from a URL. |
set_query_param
¶
Add or update a query parameter in a URL.
Works with both absolute and relative URLs. If the parameter already exists, its value is replaced.
Source code in src/commons/url_operators.py
remove_query_param
¶
Remove a query parameter from a URL.
Works with both absolute and relative URLs. If the parameter does not exist, the URL is returned unchanged.