Skip to content

Commit

Permalink
Add 404 redirects
Browse files Browse the repository at this point in the history
Signed-off-by: Ry Jones <ry@linux.com>
  • Loading branch information
ryjones committed Nov 8, 2024
1 parent 6d96bc6 commit aae1f12
Showing 1 changed file with 125 additions and 0 deletions.
125 changes: 125 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Error 404 :(</title>

<script>
window.onload = function () {
const destination = window.location.href;

if (window.location.href.includes("lf-decentralized-trust-labs.github.io/acapy-java-client")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/acapy-java-client",
"hyperledger-labs.github.io/acapy-java-client"
);
document.getElementById("body").innerHTML = "acapy-java-client has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/cc-tools")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/cc-tools",
"hyperledger-labs.github.io/cc-tools"
);
document.getElementById("body").innerHTML = "cc-tools has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/did-webs-resolver")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/did-webs-resolver",
"hyperledger-labs.github.io/did-webs-resolver"
);
document.getElementById("body").innerHTML = "did-webs-resolver has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/documentation-template")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/documentation-template",
"hyperledger-labs.github.io/documentation-template"
);
document.getElementById("body").innerHTML = "documentation-template has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/fabric-ansible-collection")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/fabric-ansible-collection",
"hyperledger-labs.github.io/fabric-ansible-collection"
);
document.getElementById("body").innerHTML = "fabric-ansible-collection has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/fabric-builder-k8s")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/fabric-builder-k8s",
"hyperledger-labs.github.io/fabric-builder-k8s"
);
document.getElementById("body").innerHTML = "fabric-builder-k8s has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/fabric-operations-console")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/fabric-operations-console",
"hyperledger-labs.github.io/fabric-operations-console"
);
document.getElementById("body").innerHTML = "fabric-operations-console has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/orion-server")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/orion-server",
"hyperledger-labs.github.io/orion-server"
);
document.getElementById("body").innerHTML = "orion-server has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/perun-doc")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/perun-doc",
"hyperledger-labs.github.io/perun-doc"
);
document.getElementById("body").innerHTML = "perun-doc has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/solang-playground")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/solang-playground",
"hyperledger-labs.github.io/solang-playground"
);
document.getElementById("body").innerHTML = "solang-playground has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/weaver-dlt-interoperability")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/weaver-dlt-interoperability",
"hyperledger-labs.github.io/weaver-dlt-interoperability"
);
document.getElementById("body").innerHTML = "weaver-dlt-interoperability has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/yui-corda-ibc")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/yui-corda-ibc",
"hyperledger-labs.github.io/yui-corda-ibc"
);
document.getElementById("body").innerHTML = "yui-corda-ibc has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}
if (window.location.href.includes("lf-decentralized-trust-labs.github.io/yui-docs")) {
const redirectLocation = window.location.href.replace(
"lf-decentralized-trust-labs.github.io/yui-docs",
"hyperledger-labs.github.io/yui-docs"
);
document.getElementById("body").innerHTML = "yui-docs has moved!<br/><br/>Redirecting to " + redirectLocation
window.location.href = redirectLocation;
}

}
</script>
</head>

<body id="body" style="text-align: center">
Page not found
</body>

</html>

0 comments on commit aae1f12

Please sign in to comment.