Activity › Forums › Salesforce® Discussions › How to navigate visualforce page classic and lightning?

  • How to navigate visualforce page classic and lightning?

    Posted by Saddam on October 9, 2019 at 5:50 AM

    How to navigate visualforce page classic and lightning?

    Piyush replied 7 years ago 2 Members · 1 Reply
  • 1 Reply
  • Piyush

    Member
    October 10, 2019 at 3:21 AM

    Hi Saddam,

    You can take help from the below example to navigate visualforce page classic and lightning:-

    navigate : function(component, event, helper) {

    var address = component.find(“address”).get(“v.value”);

    var urlEvent = $A.get(“e.force:navigateToURL”);

    urlEvent.setParams({
    “url”: ‘https://www.google.com/maps/place/’ + address
    });
    urlEvent.fire();
    }

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos