Page
Details of the current page request, including URL, path, and query parameters.
Details of the current page request, including URL, path, and query parameters. Available globally in Liquid as page.
Properties
host
The host name of the current request.
Returns: String — e.g. example.com.
locale
The locale for the current request, e.g. en-GB or en-US. Resolved from
the URL parameter, the user's preferred language, or the Accept-Language
header.
Returns: String
params
The URL query parameters for the current request. String values are HTML-escaped before being exposed to Liquid.
Returns: Hash — keys are parameter names. String values are HTML-escaped;
nested hashes and arrays are escaped recursively.
{{ page.params.page }}path
The path of the current request, without query parameters.
Returns: String — e.g. /products/my-product.
url
The full URL of the current request.
Returns: String — e.g. https://example.com/products/my-product.