add_query_param_to_url

Adds a query parameter to a URL.

Example

1
{{ 'https://example.com' | add_query_param_to_url: 'param', 'value' }} => https://example.com?param=value

Input

Type Parameter Description Required
string url The URL to add the query parameter to. Comes before the | sign. Required
string paramName The name of the query parameter to add  
string value The value of the query parameter to add  

Output

Type Description
string The URL with the query parameter added