hyTags
HomeHome DocumentationDocumentation

url-delete-query-param

Removes a query parameter from a URL and returns a new URL
Parameter
Type
Description
self
Url
The URL to modify
name
String
The name of the query parameter to remove
value
String?
The value of the query parameter (unused)
return
url
A new URL with the query parameter removed
Test Case:Delete query param from URL
    <div></div>
    
    <url-from-string string="https://example.com/path?key=value&amp;foo=bar">
    <url-delete-query-param name="key">
    <url-to-string>
    <assert-equal value="https://example.com/path?foo=bar" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed