From 87f7c6d375cac59e8c3d4ac2b89e9c3958ce3330 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Jul 2026 21:55:07 +0000 Subject: [PATCH] feat: port wiki redirects from old website --- next.config.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/next.config.ts b/next.config.ts index c2d87c9..04caed5 100644 --- a/next.config.ts +++ b/next.config.ts @@ -29,6 +29,34 @@ const nextConfig: NextConfig = { destination: '/do-not-use-mohist', permanent: true, }, + // Ported from https://github.com/EssentialsX/Website/blob/master/plugins/wiki-redirects/index.js + // Paths missing /wiki/ prefix and .html extension + { source: '/Home', destination: '/wiki/introduction', permanent: true }, + { source: '/Installing-EssentialsX', destination: '/wiki/installing', permanent: true }, + { source: '/Module-Breakdown', destination: '/wiki/modules', permanent: true }, + { source: '/Improvements', destination: '/wiki/improvements', permanent: true }, + { source: '/Locale', destination: '/wiki/translations', permanent: true }, + { source: '/Common-Issues', destination: '/wiki/faq', permanent: true }, + { source: '/Command-Cooldowns', destination: '/wiki/command-cooldowns', permanent: true }, + { source: '/Color-Permissions', destination: '/wiki/color-permissions', permanent: true }, + { source: '/BannerMeta', destination: '/wiki/banner-meta', permanent: true }, + { source: '/discord-tutorial', destination: '/wiki/discord', permanent: true }, + { source: '/Discord-Tutorial', destination: '/wiki/discord', permanent: true }, + { source: '/geoip', destination: '/wiki/geo-ip', permanent: true }, + { source: '/help', destination: '/wiki/faq', permanent: true }, + // Paths missing /wiki/ prefix but with .html extension + { source: '/Home.html', destination: '/wiki/introduction', permanent: true }, + { source: '/Installing-EssentialsX.html', destination: '/wiki/installing', permanent: true }, + { source: '/Module-Breakdown.html', destination: '/wiki/modules', permanent: true }, + { source: '/Improvements.html', destination: '/wiki/improvements', permanent: true }, + { source: '/Locale.html', destination: '/wiki/translations', permanent: true }, + { source: '/Common-Issues.html', destination: '/wiki/faq', permanent: true }, + { source: '/Command-Cooldowns.html', destination: '/wiki/command-cooldowns', permanent: true }, + { source: '/Color-Permissions.html', destination: '/wiki/color-permissions', permanent: true }, + { source: '/BannerMeta.html', destination: '/wiki/banner-meta', permanent: true }, + { source: '/Discord-Tutorial.html', destination: '/wiki/discord', permanent: true }, + { source: '/geoip.html', destination: '/wiki/geo-ip', permanent: true }, + { source: '/help.html', destination: '/wiki/faq', permanent: true }, { source: '/wiki', destination: '/wiki/introduction',