+ Start a Discussion
Puja Gupta 18Puja Gupta 18 

open visual force page in new tab from custom button in lightning

Hello Everyone, 

Please let me know how to open a visual force page in new tab in lightning instead of same tab.



Raj VakatiRaj Vakati
Use this type of code
aura:handler event="force:navigateToSObject" action="{!c.navigateToRecord}"/>
navigateToRecord : function(component , event, helper){
    window.open('/' + event.getParam('recordId'));  

<ui:button label="Open in New window" press="{!c.openActionWindow}"/>