From b90bbeab7c1435518224496821ff3449476c458d Mon Sep 17 00:00:00 2001 From: Helianthella Date: Tue, 22 Dec 2020 00:06:42 -0500 Subject: upgrade to Vue 3, switch to yarn implies a slight refactor --- src/router/redirects.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/router/redirects.ts (limited to 'src/router/redirects.ts') diff --git a/src/router/redirects.ts b/src/router/redirects.ts new file mode 100644 index 0000000..63860cf --- /dev/null +++ b/src/router/redirects.ts @@ -0,0 +1,32 @@ +// 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"; + } + }, + { + path: "/recover", + redirect: { name: "support" }, + }, +]; + +export default redirects; -- cgit v1.2.3-70-g09d2