You need to sign in to do that
Don't have an account?

How do I create a link to an application in my LWC
Hi,
I have a requirement where the user clicks on a button and is navigated to an application.
I have created a function in my JS controller by creating an URL using the following text+ Application ID, but it's not working. Please let me know if you have any suggestions. How do I build my application URL when I know my application ID?
launchApp(){
this[NavigationMixin.Navigate]({
type: 'standard__navItemPage',
attributes:{
url : '/lightning/app/c__' + this.applicationMetadataToshow.Application_ID__c
}
});
}
I have a requirement where the user clicks on a button and is navigated to an application.
I have created a function in my JS controller by creating an URL using the following text+ Application ID, but it's not working. Please let me know if you have any suggestions. How do I build my application URL when I know my application ID?
launchApp(){
this[NavigationMixin.Navigate]({
type: 'standard__navItemPage',
attributes:{
url : '/lightning/app/c__' + this.applicationMetadataToshow.Application_ID__c
}
});
}
Hi SambitNayak,
You can utilize "standard_app" as type of navigation :
For Reference : https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_page_reference_type
Please mark this as best answer if this solves your issues.
Thank you,
Vinay
All Answers
Hi SambitNayak,
You can utilize "standard_app" as type of navigation :
For Reference : https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_page_reference_type
Please mark this as best answer if this solves your issues.
Thank you,
Vinay
Infact, this code worked for me:
type: 'standard__app',
attributes:{
appTarget: 'c__'+ this.DeveloperName