---
title: ConsoleResultLink component
slug: '2983'
canonical_url: https://docs.coveo.com/en/2983/
collection: coveo-for-salesforce
source_format: adoc
---
# ConsoleResultLink component
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.
> **Note**
>
> For a Classic console version, see [SalesforceResultLink component](https://docs.coveo.com/en/1250/).
## Options
### `hrefTemplate`
Specifies template literals from which to generate the `ResultLink` `href` attribute value (see [Template literals](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/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.
```xml
```
### `titleTemplate`
Specifies template literals from which to generate the `ResultLink` display title (see [Template literals](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/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.
```xml
```
### `openInSubTab`
Open links as subtabs in the Salesforce Console instead of primary tabs.
The default value is `false`.
```xml
```
## Method
This component doesn't offer any method.
## Usage
This component is meant to be used in result templates.
```xml
```