Steps to reproduce
- Setup remote staging environment
- Goto staging side
- Admin > Content > Document and Media > add a document
- Publish the site. so that there is an existing document in the remote site.
- Back to homepage > add Web Content Portlet to the page
- Add a web content from the Web Content Portlet and add document link added in step 3
- Admin > Contents > Document and Media > select the document > Move to the Recycle Bin
- Back to homepage and Publish to Remote Live -> Switch to Advanced Publication -> Choose Content -> All -> Refresh Counts -> Change -> Checked " Referenced Content".
- Publish the site again.
the link in the remote site will point to the DM file on the staging site
the link in the remote site will point to the DM file on the remote site.