I have a VisualForce page working fine in SF Classic that contains the approval process related list with this code:
<apex:relatedList list="ProcessSteps" pageSize="3" />
When I switch to lightning experience, the history still displays I have several issues:
I get exactly the same as in 1. when hitting the button "Reassign"
- When hitting "Approve / Reject" a new tab opens with the page /p/process/ProcessInstanceWorkitemWizardStageManager (in Classic I see the page in the same tab). In that page the buttons "Back to [Object]: [id]", "Cancel", "Approve", "Reject" don't redirect me back to the object, I get the js error in the console:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('[my_org].lightning.force.com') does not match the recipient window's origin ('[my_org].my.salesforce.com').
Is there a different way to include the approval history and these buttons in a VS page when running in Lightning Experience or should we implement a custom list with custom buttons to approve, reject, reassign, submit for approval and recall since this is not supported in Lightning? Thanks