We are using a Custom URL button to invoke a VisualForce Page in which a Lightning Component in embedded (We are doing this because Lightning Quick Action gives only a Modal Box and we need a bull blown page).

Since we are using Lightning Console Application, this Visualforce Page opens in a new Tab. While trying to redirect the User to the Record Page on click of Save, i am not able to close the current tab as the workspace api wouldnt work in Lightning Components embedded in VisualForce Pages.

We have already tried using sforce.console but that wouldnt work in lightning env.

Any help would be appreciated.

closed as off-topic by glls, Boris Bachovski, battery.cord, Mohith Shrivastava, Himanshu Jul 31 '18 at 4:09

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: SSCCE.org" – glls, Boris Bachovski, battery.cord, Mohith Shrivastava, Himanshu
If this question can be reworded to fit the rules in the help center, please edit the question.