I've had that happen. That is because the link is relative to the website where it is extracted. That means, the URL addy is assumed.
The only way to correct it is to physically replace the href=".../link.ext with href="http://www.xyz.com/link.ext
I was afraid of that! What a pain in the butt!