Skip to content

Commit edb298d

Browse files
committed
Another small tweak to UE preview URL
1 parent 1764486 commit edb298d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blocks/edit/da-content/helpers/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default async function getUeUrl(org, previewUrl) {
1414
const dxOrg = value.split('/').find((split) => split.startsWith('@'));
1515
if (!dxOrg) return null;
1616
const prefix = UE_PREFIX.replace('{{DX_ORG}}', dxOrg);
17-
const ueDomain = previewUrl.replace('https://', '').replace('.aem.', '.ue.da.');
17+
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;
1819
return `${prefix}${ueDomain}`;
1920
}

0 commit comments

Comments
 (0)