Copy-paste of template-generated link from a subpage in VE gives the wrong href.
For example, put this on a page (it must be a subpage, e.g. https://en.wikipedia.org/wiki/User:Matma_Rex/sandbox):
{{1x|[[Y]]}}
Copy-paste from VE into an external editor, e.g. http://edg2s.github.io/content-editable-sandbox/.
Output:
<a rel="mw:WikiLink" href="https://en.wikipedia.org/wiki/User:Matma_Rex/Y" title="Y" about="#mwt1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"href":"Template:1x","wt":"1x"},"params":{"1":{"wt":"[[Y]]"}}}}]}" id="mwAg" data-ve-no-generated-contents="true" data-ve-attributes="{"typeof":"mw:Transclusion","rel":"mw:WikiLink","about":"#mwt1"}">Y</a>
Note the link to https://en.wikipedia.org/wiki/User:Matma_Rex/Y instead of https://en.wikipedia.org/wiki/Y.
Normal links are not affected, neither is copy-pasting from pages that are not subpages.