modify document links to direct download links