detailPageNavigation.cmp
<aura:component implements="force:lightningQuickAction, lightning:availableForFlowActions, lightning:availableForFlowScreens">
<aura:attribute name="recordId" type="String" />
<aura:handler name="init" value="{!this}" action="{!c.invoke}" />
</aura:component>
DetailPageNavifationController.js
({
invoke: function(component, event, helper) {
var navEvt = $A.get("e.force:navigateToSObject");
navEvt.setParams({
"recordId": component.get("v.recId"),
"slideDevName": "related"
});
navEvt.fire();
}
})
Flow error:"c:DetailPageNavigation" Lightning component's client-side controller includes an "invoke" method and that My Domain is enabled and deployed for your org.