I have a page in /content/staff (example: /content/staff/en/sample-page). In this page, I have created a link to /content/customer/en/my-page-here.
When I published my page, the link URL is displayed as customer.myhost.com/my-page-here and this is correct.
The problem is that if I create another link on /content/staff/en/sample-page to a PDF that resides in the DAM area (example: /content/dam/customer/my-pdf-here.pdf) for the customer site, no rewriting is showing.
The PDF link is shown as staff.myhost.com/content/dam/customer/my-pdf-here.pdf. It should be shown as customer.myhost.com/content/dam/customer/my-pdf-here.pdf.
Considering all other configs are in place. What I believe is domain rewriting might be overlooked here as you possibly have same structure for DAM in both customer.myhost.com and staff.myhost.com. If content paths are duplicated across multiple sites , it will use first best match.
While if you check for the content tree , its following hence rewriting works well with distinct content tree