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-candleProperties
| Property | Description |
|---|---|
request.csrf_token | — |
request.design_mode | true inside the theme editor preview. |
request.editor_origin | — |
request.host | Host being served. |
request.locale | Active locale. |
request.origin | Scheme + host. |
request.page_type | Template type of the current page (‘index’, ‘product’, ‘collection’…). |
request.path | Path 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 }}.