Skip to content

Link

The Link object represents a single link in the storefront.

classDiagram
  direction LR
  Link --> Url
  class Link{
    string title
    Url url
  }
  class Url{
  }

Properties

Attribute name Type Description
title string Title of the link.
url Url Reference to the Url object.

Property Examples

title property

{{ link.title }}
example title

url property

{{ link.url }}
/link/to/something

Usage examples

source
<a title="{{ link.title }}" href="{{ link.url.absolute }}">{{ link.title }}</a>
output
<a title="Product Name" href="https://example.com/en/p/product-name/98">Product Name</a>