We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1764486 commit edb298dCopy full SHA for edb298d
blocks/edit/da-content/helpers/index.js
@@ -14,6 +14,7 @@ export default async function getUeUrl(org, previewUrl) {
14
const dxOrg = value.split('/').find((split) => split.startsWith('@'));
15
if (!dxOrg) return null;
16
const prefix = UE_PREFIX.replace('{{DX_ORG}}', dxOrg);
17
- const ueDomain = previewUrl.replace('https://', '').replace('.aem.', '.ue.da.');
+ let ueDomain = previewUrl.replace('https://', '').replace('.aem.', '.ue.da.');
18
+ ueDomain = window.location.origin === 'https://da.page' ? ueDomain.replace('.ue.da.live', '.ue.da.page') : ueDomain;
19
return `${prefix}${ueDomain}`;
20
}
0 commit comments