I have a custom tab of a LWC, I wanna to open this custom tab when the button, that is located in the detail record, is clicked, like a quick action

I tried this:

    implements="force:appHostable, flexipage:availableForAllPageTypes, flexipage:availableForRecordHome, force:hasRecordId, forceCommunity:availableForAllPageTypes, force:lightningQuickAction">
    <aura:handler name="init" action="{!c.navigateToeDiscoverySearchCmp}" />


    navigateToeDiscoverySearchCmp : function(component, event, helper) {
        var evt = $A.get("e.force:navigateToComponent");
            componentDef : "c:startSale",

The LWC component name is startSale, but this doesn't work and I don't know if this will open like I wish, that is like this: enter image description here

When I click the button, the error is this: enter image description here

  • Can you post startSale LWC code ? Error seems to be in connectedCallback.
    – Rohit
    Mar 17 at 7:26


You must log in to answer this question.

Browse other questions tagged .