-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhead.html
44 lines (39 loc) · 1.47 KB
/
head.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<title>Datadesk Dashboard</title>
<link rel="canonical" href="https://{{host}}/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script async type="text/javascript">
if (location.hostname.startsWith('main') && (new RegExp('hlx\\.live$').test(location.hostname) || new RegExp('hlx\\.page$').test(location.hostname))) {
const queryParams = new URLSearchParams(location.search);
const newQp = new URLSearchParams();
const qpList = ['domainkey', 'url'];
let requiredQueryParamsFlag = true;
qpList.forEach((qp) => {
if (queryParams.has(qp) && queryParams.get(qp) !== null && queryParams.get(qp).length > 0) {
newQp.set(qp, queryParams.get(qp));
} else {
requiredQueryParamsFlag = false;
}
});
if (requiredQueryParamsFlag) {
location.href = `https://data.aem.live/rum-dashboard?${newQp.toString()}`;
} else {
location.href = 'https://data.aem.live';
}
}
</script>
<script defer src="/static/js/main.js"></script>
<link href="/static/css/main.css" rel="stylesheet">
<style>
html { height: 100% }
body { height: 100% }
main { height: 100%; }
</style>
<link rel="icon" href="data:,">
<link rel="apple-touch-icon" href="/icons/favicon.png" />
</head>
<body>
</body>
</html>