Trying to create an Action button to be placed on the record detail page, I want the functionality as click on that button, lightning component URL should open in a new window.
Using this link: /lightning/cmp/c__NewCase?recordId=Id which is opening in that tab itself while window open behavior is set to be open in a new window.
Best Answer
in your case you should use
lightning:workspaceAPI
please use below solution and post if you get any errors. refer doc for workspaceAPIcmp
controller.js