Kishore Talari (Cognizant) asked in #ApexNov 12, 2018, 9:49 AMHow to redirect record detail page in lightning using apexHow to redirect account record detail page using below codepublic PageReference save(string id) { System.debug('Entered'); PageReference nextPage = new PageReference('/'+id+'/view'); nextPage.setRedirect(true); return nextPage;}Thanks.........6 answersSortSort by DateSort by Most HelpfulSort by DateLoad more comments...Sandhya Reddy KasarlaNov 12, 2018, 10:10 AMHi,You can try below url'lightning/r/My_Custom_SObject__c/' + customRecord.Id + '/view'Best Regards,SandhyaReply in Slack
Sandhya Reddy KasarlaNov 12, 2018, 10:10 AMHi,You can try below url'lightning/r/My_Custom_SObject__c/' + customRecord.Id + '/view'Best Regards,Sandhya