getUrl()¶
The getUrl method is used to get the URL of the current page. Object type depends on the context of current page.
- MainPageUrl object
- PromotionsUrl object
- ProductsSearchUrl object
- ProductsOfTheDayUrl object
- NewProductsUrl object
- RouteUrl object
- CategoryUrl object
- CollectionUrl object
- ProducerUrl object
- LoyaltyProductsListUrl object
Example¶
For "promotions" context:
For "new products" context: