Usually within the service cloud console, the "Related To" field in the interaction log is automatically set to the opened record.
We have a VF page overriding the account view and edit pages and the "Related To" field is not getting set in those pages.
The input tag that seems to contain the record id is hidden and generated when the site is loaded:
<input type="hidden" id="ext-gen424" name="tsk3_4880c85339ef85f8e17c15b550538fb213e227ba166zaa08be799646c350_lkid" value="500g0000001HGmi">
In the overridden pages, the value is simply "000000000000000". I have been unable to change it (and I doubt changing the value is of much use once the page is fully loaded).
Any idea on how to pass the "Related To" value to the interaction log?
the data is passed in JSON - the request url is: