You need to sign in to do that
Don't have an account?
NavigateToURL not working
<ui:button label="Export to PDF"
class="slds-button slds-button--neutral"
press="{!c.navigate}"
labelClass="label"/>
on click calling below navigate and trying to open random youtube link. However I need to open VF page. Any suggestions what is wrong
navigate : function (component, event, helper) {
var urlEvent = $A.get("e.force:navigateToURL");
console.log('urlEvent is '+urlEvent);
var myUrl = 'https://www.youtube.com/watch?v=gOmL6ysIZrE';
urlEvent.setParams({
"url": myUrl
});
urlEvent.fire();
/*window.location('/006/o');*/
}