I am very new to lightning. I made one component and put it in a lightning app. Like this

<aura:application extends="force:slds">

And i am calling this on a click event like this.

var navUrl = "/inscor/"+compName+"App.app"+"?releaseId="+releaseId; 

every thing is working as expected. But default SF header is not coming. I have implemented force:appHostable for both component and app but it's still not coming. can an one please guide me one this.

  • Hi @Manhoar. I think lightning apps are supposed to be full screen. If you want to show the Salesforce header, I recommend you to create a new lightning component tab and embed your lightning component Screenshow inside. Jul 13, 2017 at 7:40
  • Hi Martin, Thanks for your quick reply. I am also passing one id to my component. Is it possible ? like that way...
    – Manohar
    Jul 13, 2017 at 7:45
  • Unfortunately, I just tested it and url parameters are not accessible from the embeded component inside the tab. Could you give us some details about the redirection you make? What is the page which is calling the redirection? Because you could use the force:navigateToComponent event. Jul 13, 2017 at 7:58
  • Hi Martin, when i try to to use force:navigateToComponent . I am redirecting to the same component. Not sure why. var newEvent = $A.get("e.force:navigateToComponent"); newEvent.setParams({ componentDef: '"c:'+compName+'"', componentAttributes: { releaseId : releaseId } }); console.log('compName::'+compName); // getting Name newEvent.fire(); I am calling different component based on some conditions. what's why i used compName(string var).
    – Manohar
    Jul 13, 2017 at 9:07
  • Hi Martin, can i make one page instead of lightning app. Then it will show the tabs. But is it possible to get url parameters from page to lightning component ?
    – Manohar
    Jul 13, 2017 at 10:46


You must log in to answer this question.

Browse other questions tagged .