category_link Function

Resolves a category’s square_online_id to a relative url pointing to the category theme page route. The url will contain the slugified version of the category name or category permalink if defined.

Defaults to # if the category square_online_id ID does not exist.

{{ category_link('example-square-online-category-id') }}