I'm using below code to redirect to a lightning component.
component.find("navService").navigate({
"type": "standard__component",
"attributes": {
"componentName": "c__CustomComponent"
},
"state": {
"c__myAttr": "attrValue"
}
});
I have created a tab for that component also. But still getting error "This page isn't available in Salesforce Lightning Experience or mobile app."
It is showing URL as : https://mydomain-dev-ed.lightning.force.com/lightning/cmp/c__CustomComponent?c__myAttr=attrValue
implements="lightning:isUrlAddressable"
? refer to the documention for more details