ConsoleResultLink component

In this article

Inside the Salesforce Lightning console, it’s convenient to be able to open result links directly in the console itself as different tabs. As such, this component inherits directly from a normal ResultLink Component with a couple of extra options and default settings.

For a Classic console version, see SalesforceResultLink component.

Options

hrefTemplate

Specifies template literals from which to generate the ResultLink href attribute value (see Template literals). The template literals can reference any number of fields from the parent result and can also reference global scope properties.

This option overrides the ['field']{@link ResultLink.options.field} option value.

If undefined, the default ClickUri will be used.

<a class="CoveoConsoleResultLink" data-href-template=''></a>

titleTemplate

Specifies template literals from which to generate the ResultLink display title (see Template literals). The template literals can reference any number of fields from the parent result. However, if the template literals reference a key whose value is undefined in the parent result fields, the ResultLink title displays the name of this key instead.

This option overrides the default ResultLink display title behavior.

This option is ignored if the ResultLink innerHTML contains any value.

If undefined, the default Title will be displayed.

<a class="CoveoConsoleResultLink" data-title-template=''></a>

openInSubTab

Open links as subtabs in the Salesforce Console instead of primary tabs.

The default value is false.

<a class="CoveoConsoleResultLink" data-open-in-sub-tab="false"></a>

Method

This component doesn’t offer any method.

Usage

This component is meant to be used in result templates.

<a class="CoveoConsoleResultLink"></a>