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
Angie ChuaAngie Chua 

Approve / Reject link opens up a new window

I have a custom VisualForce page with a custom object as a standard controller.  There's an Approval Processes for the object, so the page has the Approval History section in it.  <apex:relatedList list="ProcessSteps" id="approvalHistory" />  This is running fine in Classic.  However, I need the page to run in Lightning.

In Lightning, when the object is submitted for Approval, the Approve / Reject link shows.  But when you click on the link, the ProcessInstanceWorkitemWizardStageManager page opens up a new window in Classic mode.  You can continue to do the Approve and Reject in the Classic window, but then the original page will not be refreshed.  

Has anyone run into this issue in Salesforce Lightning?  How can we make the standard Approve / Reject link work in Lightning in the custom VisualForce page?