summaryrefslogtreecommitdiff
path: root/src/redirects.ts
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-07-13 14:51:35 -0400
committergumi <git@gumi.ca>2019-07-20 17:53:11 -0400
commitd9376169bc0d778381e5c4ff64ef9900d58ce219 (patch)
tree62b8e298f5fc7b6467d85424fd9db79c30f6a0dd /src/redirects.ts
parenta55d1feb915d5961d5aa0bca869210534cb9dc3e (diff)
downloadwebsite-d9376169bc0d778381e5c4ff64ef9900d58ce219.tar.gz
website-d9376169bc0d778381e5c4ff64ef9900d58ce219.tar.bz2
website-d9376169bc0d778381e5c4ff64ef9900d58ce219.tar.xz
website-d9376169bc0d778381e5c4ff64ef9900d58ce219.zip
scrap everything and start over with Vue
Diffstat (limited to 'src/redirects.ts')
-rw-r--r--src/redirects.ts28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/redirects.ts b/src/redirects.ts
new file mode 100644
index 0000000..e122c0d
--- /dev/null
+++ b/src/redirects.ts
@@ -0,0 +1,28 @@
+// legacy paths from the PHP website
+
+const redirects = [
+ {
+ path: "/index.php",
+ redirect: { name: "home" },
+ },
+ {
+ path: "/news-feed.php",
+ redirect: { name: "news" },
+ },
+ {
+ path: "/about.php",
+ redirect: { name: "about" },
+ },
+ {
+ path: "/registration.php",
+ redirect: { name: "registration" },
+ },
+ {
+ path: "/downloads.php",
+ redirect: () => {
+ self.location.href = "https://wiki.themanaworld.org/index.php/Downloads";
+ }
+ },
+];
+
+export default redirects;