params - Liquid Filter Reference
On this page
Description
Adds query params to a url or path
| Property | Value |
|---|---|
| Return Type | string |
| Category | url |
Examples
liquid
{{ "/about-us" | params: foo: "bar" }}
Output: /about-us?foo=bar
liquid
{{ "/about-us?fizz=buzz" | params: foo: "bar" }}
Output: /about-us?fizz=buzz&foo=bar
liquid
{{ "http://example.com/about-us?foo=bar" | params: fizz: "buzz" }}
Output: http://example.com/about-us?foo=bar&fizz=buzz