function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PRAVEEN BATTULA 4PRAVEEN BATTULA 4 

Visualforce embedded page redirection in Lightning Experience not working the Classic way

An embedded VF page in Case detail layout has a button that calls Apex controller, performs some actions and finally redirects to the same embedded section in classic. Here is the line of code that does the redirection:

PageReference pr = New PageReference('/apex/BIG_CaseContactPage?id=' + caseid);
pr.setRedirect(true); return pr;

But in Lightning, same apex action redirects to a lightning page with just the VF page. I  am looking for a way to have the same classic functionality i.e redirect to the embedded VF page but still be on the Case detail page.

Can someone help me on this issue?