request
Information about the URL of the current request and its associated page.
Properties
If the request is made in the theme editor, it returns true; otherwise, it returns false.
You can use request.design_mode to modify the theme's behavior according to its display in the editor. For instance, you might prevent tracking scripts from tracking session data in the theme editor.
Note
request.design_mode should not be used to change features that customers see. The theme editor preview should reflect what customers see in the live store.
The request's domain name.
The request's protocol and host.
The type of the requested page.
The requested page's path.
Was this article helpful to you?