+ Start a Discussion

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..   

   public PageReference saveAllAndEmail() { 
        //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 );
        return pageRef;  } 


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

Alexander BerehovskiyAlexander Berehovskiy
Is there any soultion of this problem?