---
title: "request"

doc_type: static
doc_category: static
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/sline/object/request'
  md: 'https://developer.shopline.com/docs/sline/object/request.md'
---

# request


    Information about the current URL requested by the user and the associated page. The object can be used to retrieve information about the current request.

    



## Properties

    <div>
    

        
<ObjectProperty 
    name="design_mode"
    types={[<Mdx>boolean</Mdx>]}
>
<ObjectSummary>
Whether the request originates from the theme editor.

+ `true`: The request originates from the theme editor.
+ `false`: The request does not originate from the theme editor.

You can check whether the request originates from the theme editor based on this property, and control theme behavior accordingly. For example, you can prevent script tracking to avoid tracking session data when the theme is visited from within the theme editor.
</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="host"
    types={[<Mdx>string</Mdx>]}
>
<ObjectSummary>
The domain name of the request.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="origin"
    types={[<Mdx>string</Mdx>]}
>
<ObjectSummary>
The protocol and host of the request.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="page_type"
    types={[<Mdx>string</Mdx>]}
>
<ObjectSummary>
The type of page being requested.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="path"
    types={[<Mdx>string</Mdx>]}
>
<ObjectSummary>
The path of the request.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="document_direction"
    types={[<Mdx>string</Mdx>]}
>
<ObjectSummary>
The text direction of the page content.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="locale"
    types={[<Mdx>[shop_locale](https://developer.shopline.com/docs/sline/object/shop-locale.md)</Mdx>]}
>
<ObjectSummary>
The language of the requested page.


</ObjectSummary>
</ObjectProperty>
        
    
    </div>



    
## Example

        
            

            The following example checks whether the current page is being viewed within the theme editor in the SHOPLINE Admin based on the `request.design_mode` property, allowing you to control the display behavior of components in different access modes.


            

            
<SlineExample path={''} objects={ 
    [""] 
}>
```sline
{{#if request.design_mode}}
Now in online store design mode
{{#else/}}
Now in front-end user access mode
{{/if}}
```
</SlineExample>
            
        
    
