Skip to content

Commit aae1f12

Browse files
committed
Add 404 redirects
Signed-off-by: Ry Jones <[email protected]>
1 parent 6d96bc6 commit aae1f12

File tree

1 file changed

+125
-0
lines changed

1 file changed

+125
-0
lines changed

404.html

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Error 404 :(</title>
7+
8+
<script>
9+
window.onload = function () {
10+
const destination = window.location.href;
11+
12+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/acapy-java-client")) {
13+
const redirectLocation = window.location.href.replace(
14+
"lf-decentralized-trust-labs.github.io/acapy-java-client",
15+
"hyperledger-labs.github.io/acapy-java-client"
16+
);
17+
document.getElementById("body").innerHTML = "acapy-java-client has moved!<br/><br/>Redirecting to " + redirectLocation
18+
window.location.href = redirectLocation;
19+
}
20+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/cc-tools")) {
21+
const redirectLocation = window.location.href.replace(
22+
"lf-decentralized-trust-labs.github.io/cc-tools",
23+
"hyperledger-labs.github.io/cc-tools"
24+
);
25+
document.getElementById("body").innerHTML = "cc-tools has moved!<br/><br/>Redirecting to " + redirectLocation
26+
window.location.href = redirectLocation;
27+
}
28+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/did-webs-resolver")) {
29+
const redirectLocation = window.location.href.replace(
30+
"lf-decentralized-trust-labs.github.io/did-webs-resolver",
31+
"hyperledger-labs.github.io/did-webs-resolver"
32+
);
33+
document.getElementById("body").innerHTML = "did-webs-resolver has moved!<br/><br/>Redirecting to " + redirectLocation
34+
window.location.href = redirectLocation;
35+
}
36+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/documentation-template")) {
37+
const redirectLocation = window.location.href.replace(
38+
"lf-decentralized-trust-labs.github.io/documentation-template",
39+
"hyperledger-labs.github.io/documentation-template"
40+
);
41+
document.getElementById("body").innerHTML = "documentation-template has moved!<br/><br/>Redirecting to " + redirectLocation
42+
window.location.href = redirectLocation;
43+
}
44+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/fabric-ansible-collection")) {
45+
const redirectLocation = window.location.href.replace(
46+
"lf-decentralized-trust-labs.github.io/fabric-ansible-collection",
47+
"hyperledger-labs.github.io/fabric-ansible-collection"
48+
);
49+
document.getElementById("body").innerHTML = "fabric-ansible-collection has moved!<br/><br/>Redirecting to " + redirectLocation
50+
window.location.href = redirectLocation;
51+
}
52+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/fabric-builder-k8s")) {
53+
const redirectLocation = window.location.href.replace(
54+
"lf-decentralized-trust-labs.github.io/fabric-builder-k8s",
55+
"hyperledger-labs.github.io/fabric-builder-k8s"
56+
);
57+
document.getElementById("body").innerHTML = "fabric-builder-k8s has moved!<br/><br/>Redirecting to " + redirectLocation
58+
window.location.href = redirectLocation;
59+
}
60+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/fabric-operations-console")) {
61+
const redirectLocation = window.location.href.replace(
62+
"lf-decentralized-trust-labs.github.io/fabric-operations-console",
63+
"hyperledger-labs.github.io/fabric-operations-console"
64+
);
65+
document.getElementById("body").innerHTML = "fabric-operations-console has moved!<br/><br/>Redirecting to " + redirectLocation
66+
window.location.href = redirectLocation;
67+
}
68+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/orion-server")) {
69+
const redirectLocation = window.location.href.replace(
70+
"lf-decentralized-trust-labs.github.io/orion-server",
71+
"hyperledger-labs.github.io/orion-server"
72+
);
73+
document.getElementById("body").innerHTML = "orion-server has moved!<br/><br/>Redirecting to " + redirectLocation
74+
window.location.href = redirectLocation;
75+
}
76+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/perun-doc")) {
77+
const redirectLocation = window.location.href.replace(
78+
"lf-decentralized-trust-labs.github.io/perun-doc",
79+
"hyperledger-labs.github.io/perun-doc"
80+
);
81+
document.getElementById("body").innerHTML = "perun-doc has moved!<br/><br/>Redirecting to " + redirectLocation
82+
window.location.href = redirectLocation;
83+
}
84+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/solang-playground")) {
85+
const redirectLocation = window.location.href.replace(
86+
"lf-decentralized-trust-labs.github.io/solang-playground",
87+
"hyperledger-labs.github.io/solang-playground"
88+
);
89+
document.getElementById("body").innerHTML = "solang-playground has moved!<br/><br/>Redirecting to " + redirectLocation
90+
window.location.href = redirectLocation;
91+
}
92+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/weaver-dlt-interoperability")) {
93+
const redirectLocation = window.location.href.replace(
94+
"lf-decentralized-trust-labs.github.io/weaver-dlt-interoperability",
95+
"hyperledger-labs.github.io/weaver-dlt-interoperability"
96+
);
97+
document.getElementById("body").innerHTML = "weaver-dlt-interoperability has moved!<br/><br/>Redirecting to " + redirectLocation
98+
window.location.href = redirectLocation;
99+
}
100+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/yui-corda-ibc")) {
101+
const redirectLocation = window.location.href.replace(
102+
"lf-decentralized-trust-labs.github.io/yui-corda-ibc",
103+
"hyperledger-labs.github.io/yui-corda-ibc"
104+
);
105+
document.getElementById("body").innerHTML = "yui-corda-ibc has moved!<br/><br/>Redirecting to " + redirectLocation
106+
window.location.href = redirectLocation;
107+
}
108+
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/yui-docs")) {
109+
const redirectLocation = window.location.href.replace(
110+
"lf-decentralized-trust-labs.github.io/yui-docs",
111+
"hyperledger-labs.github.io/yui-docs"
112+
);
113+
document.getElementById("body").innerHTML = "yui-docs has moved!<br/><br/>Redirecting to " + redirectLocation
114+
window.location.href = redirectLocation;
115+
}
116+
117+
}
118+
</script>
119+
</head>
120+
121+
<body id="body" style="text-align: center">
122+
Page not found
123+
</body>
124+
125+
</html>

0 commit comments

Comments
 (0)