I have created a screen flow. It has a text template. I have created a button in the template that will call a LWC.
Below is the code added in text template:
<a class="slds-button slds-button_brand button-sizing-border" style="length:0.025px" href="/lightning/cmp/c__myLWC&c__layout=lightning&c__tabIcon=custom:custom18&c__tabLabel=My LWC &c__ContextId={!recordId}" target="_self">Navigate to LWC</a>
However, if I click on the displayed button, the LWC doesn't get open and I get an error stating, This page isn't available in Salesforce Lightning Experience or mobile app.
Any solution or approach will be helpful. I have attached the error screen I see.