I have the following code in my SLDS VF page:

<apex:outputText rendered="{!result != null}"><a href='/{!acct.id}'>{!acct.Salesforce_Account_ID__c} <br/></a></apex:outputText> 

Although the link is showing as expected, when clicked, the current page is being overwritten with the new one. I do have the options to right click and open in new Window/Tab, but is there a way to open the link in new window with left click?

1 Answer 1



    rendered="{!result != null}" 
  • 1
    or ... value={!URLFOR($Action.Account.View,acct.Id)}" for the purist
    – cropredy
    Commented Jul 3, 2019 at 21:07
  • @cropredy, purist and more safer, dynamic which works even when a page is used in community with a sub domain..
    – Raul
    Commented Jul 3, 2019 at 21:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .