Trouble with Entity Translation and embedded node links

I experienced a problem using Entity Translation and Pathologic. I have a node with a body field that contains links to nodes. Both this node and the linked nodes have translations. Because I'm using ET the nid is the same regardless of the language. Now what happens is that when I load the main node uncached all translations of the body field get the same aliases when _pathologic_replace() converts the paths in the links. Therefore when I then visit the translated version of the main node which is now cached the wrong aliases are shown because they were generated for the wrong language.

 

Se Our Drupal.org for patches:

https://www.drupal.org/node/2415771