We have a custom VF page for a 'New Contract'. While migrating to lightning, we have created a lightning component for this 'new contract' VF page.
Now, on click of the 'New Contract' button in Account's related list, we need to open the VF in the classic view and lightning component in lightning view. We want this in the same button.
How to do this?