function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tiwari VedantTiwari Vedant 

"_self" in hyperlink formula field in lightning console opening link in new sub tab not overriding primary subtab

_self is opening new subtab in lightning console. I dont want to open link in new subtab. It should override primary subtab. The formula field is-

(" [" &
HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=Select&CaseNumid="&Id,"Select", "_self") & "]" &
" [" & HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=View&CaseNumid="&Id&"&EnvId="&CustomerEnvironment__c,"View Selected", "_self") & "]" &
" [" & HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=Edit&CaseNumid="&Id&"&EnvId="&CustomerEnvironment__c, "Edit Selected", "_self") & "]" &" [" &
HYPERLINK("/apex/Sc_UpdateCustomerEnvironment_Update?action=New&CaseNumid="&Id,"New Environment", "_self") & "]")

It is working perfect in classic console.
Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi vedant,
This is a known issue in salesforce lightning before.It is fixed in winter '19 release.
https://success.salesforce.com/issues_view?id=a1p3A0000018PdwQAE&title=hyperlink-in-formula-field-doesn-t-respect-the-target-attribute-in-lightning
https://releasenotes.docs.salesforce.com/en-us/winter19/release-notes/rn_lex_honor_target_value_formula_fields.htm

Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.

Thanks and Regards
Tiwari VedantTiwari Vedant
Thanks Devi for the Response. It lightning console it is as per design. target='_self' will take primary tab as self tab(same tab) and each time will open new subtab under same primary tab.
I was looking for functionality which will override same subtab as in classic console. But unfortunately its not available.