Skip to content

routes

Canonical URLs for built-in routes (cart, search, account…). Use instead of hard-coding paths.

Example

<a href="{{ routes.cart_url }}">Cart</a>

Output:

<a href="/cart">Cart</a>

Properties

PropertyDescription
routes.account_addresses_urlBuyer-visible URL for account addresses, or nil/empty when unavailable.
routes.account_company_urlBuyer-visible URL for account company, or nil/empty when unavailable.
routes.account_location_selector_urlBuyer-visible URL for account location selector, or nil/empty when unavailable.
routes.account_login_urlBuyer-visible URL for account login, or nil/empty when unavailable.
routes.account_login_verify_urlBuyer-visible URL for account login verify, or nil/empty when unavailable.
routes.account_logout_urlBuyer-visible URL for account logout, or nil/empty when unavailable.
routes.account_profile_update_urlBuyer-visible URL for account profile update, or nil/empty when unavailable.
routes.account_profile_urlBuyer-visible URL for account profile, or nil/empty when unavailable.
routes.account_recover_urlBuyer-visible URL for account recover, or nil/empty when unavailable.
routes.account_register_urlBuyer-visible URL for account register, or nil/empty when unavailable.
routes.account_rewards_urlBuyer-visible URL for account rewards, or nil/empty when unavailable.
routes.account_urlBuyer-visible URL for account, or nil/empty when unavailable.
routes.all_products_collection_urlBuyer-visible URL for all products collection, or nil/empty when unavailable.
routes.buy_now_checkout_urlBuyer-visible URL for buy now checkout, or nil/empty when unavailable.
routes.cart_add_urlBuyer-visible URL for cart add, or nil/empty when unavailable.
routes.cart_change_urlBuyer-visible URL for cart change, or nil/empty when unavailable.
routes.cart_clear_urlBuyer-visible URL for cart clear, or nil/empty when unavailable.
routes.cart_update_urlBuyer-visible URL for cart update, or nil/empty when unavailable.
routes.cart_urlBuyer-visible URL for cart, or nil/empty when unavailable.
routes.collections_urlBuyer-visible URL for collections, or nil/empty when unavailable.
routes.contact_urlBuyer-visible URL for contact, or nil/empty when unavailable.
routes.event_availability_urlBuyer-visible URL for event availability, or nil/empty when unavailable.
routes.localization_urlBuyer-visible URL for localization, or nil/empty when unavailable.
routes.modifier_file_presign_urlBuyer-visible URL for modifier file presign, or nil/empty when unavailable.
routes.predictive_search_urlBuyer-visible URL for predictive search, or nil/empty when unavailable.
routes.product_recommendations_urlBuyer-visible URL for product recommendations, or nil/empty when unavailable.
routes.root_urlBuyer-visible URL for root, or nil/empty when unavailable.
routes.search_urlBuyer-visible URL for search, or nil/empty when unavailable.
routes.stock_notifications_subscribe_urlBuyer-visible URL for stock notifications subscribe, or nil/empty when unavailable.
routes.storefront_login_urlBuyer-visible URL for storefront login, or nil/empty when unavailable.

Property list is generated from the storefront engine (RoutesDrop), so it always matches what your theme can use. Use {{ routes | json }} only as a curated debug snapshot; it can omit lazy or otherwise public properties.