Link Search Menu Expand Document

Link

object

Attributes

link.host

string

deprecated

The host of the URL for this link.

link.linked_resource

string

The object associated with the link, if there is one. This can be one of the following:

You can use the type attribute to distinguish between these. For example:


{% case link.linked_resource.type %}
{% when "page" %}
    ...
{% when "experience" %}
    ...
{% when "accommodation" %}
    ...
{% when "blog_post" %}
    ...
{% endcase %}

It will return nil if the link uses an external URL.

link.new_tab

boolean

Returns true if clicking this link should open a new tab.

link.path

string

deprecated

The path of the URL for this link.

link.url

string

The full URL for the link.