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
MarkInAtlantaMarkInAtlanta 

Service Console and PageReference retURL issue

I am calling standard email page from a custom object (related to the Case)  and trying to get the return to go back to the Case. This works OK in standard ui and in the console if you complete the dialog, but if you cancel in the Email  it does not return to the case in the console, but does in standard ui..   The console seems to just ignore the retURL on "cancel" of the email page and goes back to the prior tab..   

Controller: 
   public PageReference saveAllAndEmail() { 
       saveAll(); 
        //returns the standard Email ui, the retURL points back to the case when that is done..  
        PageReference pageRef = new PageReference('/_ui/core/email/author/EmailAuthor?retURL=%2F' + pageCase.Id + '&rtype=003&p3_lkid=' + pageCase.Id + '&p2_lkid='  + MyContactId );
        pageRef.setRedirect(true);
        return pageRef;  } 

page: 

 <apex:commandButton action="{!saveAllAndEmail}" value="Save And Email" reRender="foo"/>





 
Alexander BerehovskiyAlexander Berehovskiy
Is there any soultion of this problem?