I have old apex controller which has constructor implemented as follows:
public class RetrieveRecordId{
Id recordId;
public RetrieveRecordId(ApexPages.StandardController controller) {
recordId = controller.getId();
}
}
Now this was working fine in salesforce classic, but when org was switched to lightning ApexPages.StandardController does not get the recordId when a url na15.salesforce.com/apex/RetrieveRecordIdPage?id=a0o58000000a8qJAaQ .
I know lightning URL don't know what parameters are being passed. Is there any workaround to get params with existing apex code without changing to aura enabled controllers.