I have a custom sidebar component that needs to get record context in Salesforce. I was doing this using the sdfcIFrameOrigin value from the page parameters. This works when viewing the record itself, but when on ancillary pages like the New Comment or Send an Email page, I am no longer getting query string parameters in the page parameters.
I used to get this from the sdfcIFrameOrigin field, but now this removes all of the page parameters.
For example, if I access the emailAuthor page, I will get:
sdfcIFrameOrigin=https://na6.salesforce.com/_ui/core/email/author/EmailAuthor
instead of:
sdfcIFrameOrigin=https://na6.salesforce.com/_ui/core/email/author/EmailAuthor?p3_lkid={RECORD ID}
I believe this changed in either the Spring or Summer 17 releases. I cannot use Javascript to get the parent window location because the Visualforce component is in an Iframe served from a different domain than the parent frame so it will cause cross domain errors.
Does anyone have any ideas how I can get record context from my sidebar component in my example of the EmailAuthor page?
Thanks!