Link Search Menu Expand Document

Page

object

The Page object represents a site page.


Attributes

page.host

string

The site’s domain.

=> example.com

page.params

object

The query params included in the current URL.

For example, given the URL https://my-url.com?page=4, using {{page.params.page}} would return “4”.

page.path

string

The relative path of the request.

=> /products/my-product-2021-10-09

page.type

string

Will always return “page”. This is useful when an object is returned from menu_item.linked_resource and you need to determine if it is a Page object.

page.url

string

The full url of the page.

=> https://example.com/products/my-product-2021-10-09