Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

How does AEMaaCS determine which preview domain to use when multiple are mapped to the same environment?

Avatar

Level 2

In AEMaaCS, we have multiple preview domains configured in the Domain Mapping section of Cloud Manager. All of them are mapped to our Preview production environment, each associated with specific content paths.

 

However, when generating a Preview Link for a page (e.g., from the Page Editor), AEM seems to automatically pick one of the preview domains, and it's always the same one.

 

How does AEM determine which domain to use for preview link generation when multiple preview domains are mapped to the same environment?

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi @aa_w ,

In AEMaaCS, when multiple preview domains are mapped to the same Preview environment, AEM uses the first domain listed in the Cloud Manager Domain Mapping configuration as the default domain for generating preview links. This behavior is by design and ensures consistency in how preview links are constructed.

 

Reorder the domain entries in Cloud Manager’s Domain Mapping section so that the desired preview domain appears first for the Preview environment.

Thanks.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 5

Hi @aa_w ,

In AEMaaCS, when multiple preview domains are mapped to the same Preview environment, AEM uses the first domain listed in the Cloud Manager Domain Mapping configuration as the default domain for generating preview links. This behavior is by design and ensures consistency in how preview links are constructed.

 

Reorder the domain entries in Cloud Manager’s Domain Mapping section so that the desired preview domain appears first for the Preview environment.

Thanks.

Avatar

Level 2

Good to know,

We've had the domain as the first preview domain at the top of the domains list for a while now but it hasn't changed yet. Does it require a pipeline rebuild?