I have a Detail page button (VF page) and controller for it.
I used Pagereferenc method to take user to the record details page:
However, it works fine in the Classic, but not in Lightning.
String url = '/'+engCloneCopy.id+'/e?retURL=%2F'+engCloneCopy.id; return new PageReference(url);
In Lightning, it will open up the edit page correctly, however once user saves the record, then page is blank and record gets updated in the background.
Expectation is that, once user save the record it should go back to the record detail page as it works in classic.