Skip to content

Commit cec3ecb

Browse files
committed
[gephi-lite] better JS/No JS redirection
relates #245 fixes #220
1 parent 0e9c56a commit cec3ecb

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

redirects.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ const redirects: Record<string, RedirectConfig> = {
5757
status: 301,
5858
destination: "/about",
5959
},
60-
"/gephi-lite": {
61-
status: 301,
62-
destination: "https://lite.gephi.org",
63-
},
6460
};
6561

6662
export default redirects;

src/pages/gephi-lite.astro

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
3+
---
4+
5+
<html lang="en-US">
6+
<head>
7+
<meta charset="UTF-8" />
8+
<noscript>
9+
<meta http-equiv="refresh" content="0; url=https://lite.gephi.org/" />
10+
</noscript>
11+
<script type="text/javascript">
12+
window.location.href = "https://lite.gephi.org/" + (window.location.search || "") + (window.location.hash || "");
13+
</script>
14+
<title>Page Redirection</title>
15+
</head>
16+
<body>
17+
If you are not redirected automatically, follow this <a href="https://lite.gephi.org/">link</a>.
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)