Have you changed the types of vpp providers? Internally links of files in a versioningprovider vpp looks like "~/link....". Nativeprovider is always relative.
Both the old site and the new one we migrated to uses VirtualPathVersioningProvider. Files that are added after the migration does not seem to be affected though.
It's url properties that gets rewritten to the internal link for some reason.
We have an issue with links to images that we've migrated from an EPiServer 6 site to an EPiServer 7 site. After the migrations script has run everything works fine. But if we restart the site the links get rewritten
Original link: "/Global/Test_bilder/logo_01.png"
Becomes this after restart: "~/link/d2b5ee7288f248beb8410effff75d7ec.jpg"
UrlRebasKind is set to "ToRootRelative", but that wouldn't affect links in this way would it?
This is the part of our migrations script that creates the files: