vid-245: add hook to get redirected file from foreign repo