---
title: SalesforceResultLink component
slug: '1250'
canonical_url: https://docs.coveo.com/en/1250/
collection: coveo-for-salesforce
source_format: adoc
---
# SalesforceResultLink component
When viewing Salesforce items from the search results inside the Salesforce Classic console, it's ideal for them to open in [Salesforce console tabs](https://help.salesforce.com/articleView?id=console2_tabs_primary_subtab.htm&type=5), or in a Lightning community for them to open directly in the community.
To achieve the desired behavior, this component inherits directly from the [ResultLink component](https://coveo.github.io/search-ui/components/resultlink.html) with a couple of extra options and default settings.
> **Notes**
>
> * When using the ResultLink component, Salesforce items might open in a new browser tab instead of in the console.
> They might also try to open through the internal console link, instead of the customer-facing community link, while in a Salesforce Community.
> * For a Lightning console version, see [ConsoleResultLink component](https://docs.coveo.com/en/2983/).
## Options
### `openInPrimaryTab`
Specifies that the result link should try to open as a primary console tab.
If it fails, it opens in a new browser tab instead.
The default value is `true`.
> **Note**
>
> Most of the time, a result link fails to open if the URL isn't allowlisted for your console app.
> You can see an explicit message in the browser console that tells you that the URL was denied (see [Whitelist Domains for a Salesforce Console](https://help.salesforce.com/HTViewHelpDoc?id=console2_whitelist_domains.htm&language=en_US)).
```xml
```
### `openInSubTab`
Specifies that the result link should try to open as a secondary console tab.
If it fails, it opens in a new browser tab instead.
The default value is `false`.
> **Note**
>
> Most of the time, a result link fails to open if the URL isn't allowlisted for your console app.
> You can see an explicit message in the browser console that tells you that the URL was denied (see [Whitelist Domains for a Salesforce Console](https://help.salesforce.com/HTViewHelpDoc?id=console2_whitelist_domains.htm&language=en_US)).
```xml
```
## Methods
This component doesn't provide any methods.
## Usage
This component is meant to be used in result templates.
```xml
```
### Force all items to open in a new browser tab
To force all items to open in a new browser tab outside of the Salesforce console, set the options `openInPrimaryTab` and `openInSubTab` to `false`.
You can then use the standard [ResultLink component](https://coveo.github.io/search-ui/components/resultlink.html) options.