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