I've noticed an issue that seems to be specific to the service console user interface.
I have a VF email template on the case object. Included on this email template is a link to the case record, which I achieve using the following code from this thread.
<apex:variable var="url" value="{!LEFT($Api.Partner_Server_URL_140, FIND(".com/",$Api.Partner_Server_URL_140)+3)}"/>
<apex:outputLink value="{!url}/{!relatedTo.Id}">Case Link</apex:outputLink>
I've tied this VF email template to an email alert triggered by a case workflow rule. Those work correctly regardless of UI used.
However, the 'Case Link' generated from the template seems to be different in the resulting email, depending on whether you were using the regular SF UI or the Service Console UI.
When I make the necessary changes to a case to trigger an email alert within the standard UI, the case link generated from the template works fine. The actual URL behind the 'Case Link' text in the email is
https://na29.salesforce.com/5003400000niUibAAE
But when I make the same changes on the same case in the Service Console, the URL looks like this:
javascript:srcUp('https%3A%2F%2Fna29.salesforce.com%2F5003400000niUibAAE%3Fisdtp%3Dvw');
Which throws security errors with most email clients and prevents it from opening (client security probably blocks the javascript).
Seems like this is directly related to how URLs to console viewed records differ from the standard. My question is, how can I provide a link to my case record that works in both the console view and the standard UI, and can be accessed by both internal users and Customer Community users?
(Edited for additional info)