Appearance
querystring
The querystring appended to the current URL. Typically used during development on live sites to hide work in progress with {% if querystring.preview %} blocks, or when re-populating contact form fields with querystring.form.values.
ACCESS
Directly accessible in all Website templates.
Example
json
[{
"[querystring_key]": "[querystring_value]"
}]Properties
Each item in the array has the following properties:
[querystring_key]
stringEach querystring element is directly accessible as a named key and the value, e.g. a URL with ?preview=1 becomes querystring.preview with value 1 in liquid.