The request object
request object returns information about the URL used to access your store and the page being accessed.
request.design_modeAnchor link to section titled "request.design_mode"
Whether the request is being made from the theme editor.
You can use
request.design_mode to disable undesired behavior in the theme editor.
request.hostAnchor link to section titled "request.host"
You can use
request.host to check which domain a customer is visiting from.
For example, if you have multiple domains, you can show a different greeting based on the request:
request.localeAnchor link to section titled "request.locale"
Returns the shop_locale of the current request.
request.originAnchor link to section titled "request.origin"
Returns the scheme and host of the current request.
You can concatenate this property with any object property that returns a relative URL to build a context-sensitive absolute URL for an object or page. For example, you can use this property with the
url property of a resource object, or with properties of the routes object.
request.pathAnchor link to section titled "request.path"
Returns the path to the current page.
request.page_typeAnchor link to section titled "request.page_type"
Returns the type of the current page. These are the different page types: