Skip to content

request

Details of the current HTTP request: path, host, page type, locale, and query parameters. Available globally.

Example

{{ request.page_type }} at {{ request.path }}

Output:

product at /products/sandalwood-candle

Properties

PropertyDescription
request.csrf_token
request.design_modetrue inside the theme editor preview.
request.editor_origin
request.hostHost being served.
request.localeActive locale.
request.originScheme + host.
request.page_typeTemplate type of the current page (‘index’, ‘product’, ‘collection’…).
request.pathPath of the current request.
request.query
request.visual_preview_mode

Property list is generated from the storefront engine (RequestDrop), so it always matches what your theme can use. Inspect live values with {{ request | json }}.