I am using NavigationMixin to navigate from one lwc to another lwc (app page in a custom tab) like this:
this[NavigationMixin.Navigate]({
type: 'standard__navItemPage',
attributes: {
apiName: 'MyCustomTab'
}
});
My problem is when I deploy this in my partner org, which has a namespace, I get an error because MyCustomTab doesn't exist. The proper name is MyNamespace__MyCustomTab. How can I solve this issue? I want my code working on both scenarios, with and without namespace.
Thank you.