diff options
Diffstat (limited to 'src/redirects.ts')
-rw-r--r-- | src/redirects.ts | 28 |
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; |