I have 2 components that I wish to use in a lightning community.
The first component produces a list of records and if the user clicks on the name of the record i want to redirect them to another lightning component.
Here's the code I'm using to redirect and it works when not in the community
newRedirect: function (component, event, helper) {
console.log('get ready to navigate');
var navService = component.find("navService");
var pageReference = {
"type": "standard__component",
"attributes": {
"componentName": "CS_Inventory_v2"
},
"state": {}
};
navService.navigate(pageReference);
}
It feels like I'm missing a setting.......