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
System 129System 129 

Open custom Lightning page or Lightning component by button in the same window.

I have a custom lightning page with custom lightning component that related to the Account object.
I need to open this page by button in the same window.
How I can do it? 
I can set this component to VisualForce page, but maybe there is another option?
Ashif KhanAshif Khan
Hi 
You can create a quick action type button and add the lightning component
this is the reference link

http://sfdcmonkey.com/2017/04/16/add-lightning-component-lightning-action/ 

I hope this will help you

Regards
Ashif

 
System 129System 129
Modal window is not the option, It should be separate page, now it was done by setting component into the VisualForce page. 
Raja Bipin Chandra  M BRaja Bipin Chandra M B
Hi, 

We did use following controller code in JS
 
({
    gotoURL : function (component) {
        var urlEvent = $A.get("e.force:navigateToURL");
        urlEvent.setParams({
          "url": "/006/o"
        });
        urlEvent.fire();
    }
})