Skip to content

Commit bdc3433

Browse files
authored
Merge pull request #344 from bitdefender/aem-live-migration
chore: update URLs and hostname references from .hlx. to .aem.
2 parents aec1ef3 + 527df10 commit bdc3433

File tree

11 files changed

+16
-16
lines changed

11 files changed

+16
-16
lines changed

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Please always provide the [GitHub issue(s)](../issues) your PR is for, as well a
33
Fix #<gh-issue-id>
44

55
Test URLs:
6-
- Before: https://main--www-websites--bitdefender.hlx.page/zh-hk/
7-
- After: https://<branch>--www-websites--bitdefender.hlx.page/zh-hk/
6+
- Before: https://main--www-websites--bitdefender.aem.page/zh-hk/
7+
- After: https://<branch>--www-websites--bitdefender.aem.page/zh-hk/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Your project's description...
33

44
## Environments
5-
- Preview: https://main--bitdefender--hlxsites.hlx.page/
6-
- Live: https://main--bitdefender--hlxsites.hlx.live/
5+
- Preview: https://main--bitdefender--hlxsites.aem.page/
6+
- Live: https://main--bitdefender--hlxsites.aem.live/
77

88
## Installation
99

_src/blocks/embed/embed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Embed Block
33
* Show videos and social posts directly on your page
4-
* https://www.hlx.live/developer/block-collection/embed
4+
* https://www.aem.live/developer/block-collection/embed
55
*/
66

77
const loadScript = (url, callback, type) => {

_src/blocks/footer/footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async function runLandingpageLogic(block) {
129129

130130
async function runAemFooterLogic() {
131131
// fetch footer content
132-
const aemFooterHostname = window.location.hostname.includes('.hlx.')
132+
const aemFooterHostname = window.location.hostname.includes('.aem.')
133133
|| window.location.hostname.includes('localhost')
134134
? 'https://stage.bitdefender.com'
135135
: '';

_src/blocks/particle-background/particle-background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function init(block, aemOptions) {
5757
// await window.tsParticles.load({ id: particleIdSelector, options });
5858
// let script = document.createElement('script');
5959
// script.src = 'https://cdn.jsdelivr.net/npm/tsparticles@3.3.0/tsparticles.bundle.min.js';
60-
// script.src = 'https://dlp-fixes--www-websites--bitdefender.hlx.page/_src/scripts/vendor/tsparticles/tsparticles.bundle.min.js';
60+
// script.src = 'https://dlp-fixes--www-websites--bitdefender.aem.page/_src/scripts/vendor/tsparticles/tsparticles.bundle.min.js';
6161
// script.src = '../../../_src/scripts/vendor/tsparticles/tsparticles.bundle.min.js';
6262
// block.appendChild(script);
6363
// script.onload = () => {

_src/blocks/video/video.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Video Block
33
* Show a video referenced by a link
4-
* https://www.hlx.live/developer/block-collection/video
4+
* https://www.aem.live/developer/block-collection/video
55
*/
66
function embedYoutube(url, autoplay) {
77
const usp = new URLSearchParams(url.search);

_src/scripts/lib-franklin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Page from './libs/page.js';
1515
import { UserAgent } from './libs/user-agent/user-agent.js';
1616

1717
const STICKY_NAVIGATION_SECTION_METADATA_KEY = 'sticky-navigation-item';
18-
export const ALL_FRANKLIN_DEV_SUBDOMAINS = ['localhost', '.hlx.page', '.hlx.live'];
18+
export const ALL_FRANKLIN_DEV_SUBDOMAINS = ['localhost', '.aem.page', '.aem.live'];
1919
export const STICKY_NAVIGATION_DATASET_KEY = 'stickyNavName';
2020

2121
/**
@@ -29,7 +29,7 @@ export const STICKY_NAVIGATION_DATASET_KEY = 'stickyNavName';
2929
*/
3030
export function sampleRUM(checkpoint, data = {}) {
3131
const SESSION_STORAGE_KEY = 'aem-rum';
32-
sampleRUM.baseURL = sampleRUM.baseURL || new URL(window.RUM_BASE == null ? 'https://rum.hlx.page' : window.RUM_BASE, window.location);
32+
sampleRUM.baseURL = sampleRUM.baseURL || new URL(window.RUM_BASE == null ? 'https://rum.aem.page' : window.RUM_BASE, window.location);
3333
sampleRUM.defer = sampleRUM.defer || [];
3434
const defer = (fnname) => {
3535
sampleRUM[fnname] = sampleRUM[fnname]
@@ -90,7 +90,7 @@ export function sampleRUM(checkpoint, data = {}) {
9090
lazy: () => {
9191
// use classic script to avoid CORS issues
9292
const script = document.createElement('script');
93-
script.src = 'https://rum.hlx.page/.rum/@adobe/helix-rum-enhancer@^1/src/index.js';
93+
script.src = 'https://rum.aem.page/.rum/@adobe/helix-rum-enhancer@^1/src/index.js';
9494
document.head.appendChild(script);
9595
return true;
9696
},

_src/scripts/libs/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Page from "./page.js"
22

33
export class Constants {
4-
static DEV_BASE_URL = ['localhost', 'stage', '.hlx.'].some((domain) =>
4+
static DEV_BASE_URL = ['localhost', 'stage', '.hlx.', '.aem.'].some((domain) =>
55
window.location.hostname.includes(domain)) ? 'https://www.bitdefender.com' : '';
66

77
static FINGERPRINT_LOCAL_STORAGE_NAME = 'rhvID';
@@ -12,7 +12,7 @@ export class Constants {
1212

1313
static ZUROA_LOCALES = ['nl-nl', 'nl-be'];
1414

15-
static DEV_DOMAINS = ['localhost', 'stage', '.hlx.'];
15+
static DEV_DOMAINS = ['localhost', 'stage', '.hlx.', '.aem.'];
1616

1717
static PRODUCT_ID_MAPPINGS_CALL = this.#getVlaicuProductIdsMapping();
1818

_src/scripts/libs/page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default class Page {
6565
*/
6666
static #getEnvironment() {
6767
const { hostname } = window.location;
68-
if (hostname.includes('hlx.page') || hostname.includes('hlx.live')) {
68+
if (hostname.includes('aem.page') || hostname.includes('aem.live')) {
6969
return 'stage';
7070
}
7171
if (hostname.includes('www.bitdefender')) {

tools/block-list/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { JSDOM } = require('jsdom');
33

44
// Base URLs
55
const hostname = 'https://main--www-websites--bitdefender.aem.page';
6-
const jsonUrl = 'https://main--www-websites--bitdefender.hlx.page/query-index.json';
6+
const jsonUrl = 'https://main--www-websites--bitdefender.aem.page/query-index.json';
77

88
// Function to get class names from HTML
99
const extractClassNames = (html) => {

0 commit comments

Comments
 (0)