How to open a Lightning open a custom Lightning component/tab/app in Lightning service console
As per doc tab can be opened using console workspace API. But what will be URL for a custom Lightning Component/app/tab.
({
openTab : function(component, event, helper) {
var workspaceAPI = component.find("workspace");
workspaceAPI.openTab({
**url: "#/sObject/500R0000000myfGIAQ/view",**
focus: true
}).then(function(response) {
workspaceAPI.getTabInfo({
tabId: response
}).then(function(tabInfo) {
console.log(“The recordId for this tab is: “ + tabInfo.recordId);
});
}).catch(function(error) {
console.log(error);
});
}
})