+ Start a Discussion
LinThawLinThaw 

Open Lightning Application From Lightning Component

Hi there,

Can anyone give your suggestion for this.
best way to open Lightning Application From Lightning Component.

following is one of my suggestion.
({
    doInit : function (component, event) {
        var recId = component.get("v.recordId");
        var url = '/c/sampleApp.app?recordId=' + recId;
        window.open(url,'_top');
    }
})
reference link (https://success.salesforce.com/issues_view?id=a1p3A000000BMkkQAG&title=calling-window-open-in-lightning-component-fails-redirection-in-spring-19-following-pop-up-warning)

Thanks
LinThaw