hyTags
HomeHome DocumentationDocumentation

url-get-query-param

Gets the value of a query parameter from a URL
Parameter
Type
Description
self
Url
The URL to get the query parameter from
name
String
The name of the query parameter
return
string
The value of the query parameter, or nil if not found
Test Case:Get query param from URL
    <div></div>
    
    <url-from-string string="https://example.com/path?key=value&amp;foo=bar">
    <url-get-query-param name="key">
    <assert-equal value="value" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed