summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-25 00:52:08 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-25 00:52:08 -0400
commit87536fbd9a9572d2b11bc429ecab91c5f8aeefa3 (patch)
treeb1edb0e92efe86c1c3b8b2b805f95c80e25d0c65 /src
parentebe41180c41f544919c03fb3bf6029437a7d65a4 (diff)
downloadSMAPI-87536fbd9a9572d2b11bc429ecab91c5f8aeefa3.tar.gz
SMAPI-87536fbd9a9572d2b11bc429ecab91c5f8aeefa3.tar.bz2
SMAPI-87536fbd9a9572d2b11bc429ecab91c5f8aeefa3.zip
remove obsolete buildmsg redirect
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Web/Startup.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/SMAPI.Web/Startup.cs b/src/SMAPI.Web/Startup.cs
index 2556936c..4b22ca67 100644
--- a/src/SMAPI.Web/Startup.cs
+++ b/src/SMAPI.Web/Startup.cs
@@ -205,15 +205,20 @@ namespace StardewModdingAPI.Web
// shortcut paths
.Add(new RedirectPathsToUrlsRule(new Dictionary<string, string>
{
+ // wiki pages
[@"^/3\.0\.?$"] = "https://stardewvalleywiki.com/Modding:Migrate_to_SMAPI_3.0",
- [@"^/(?:buildmsg|package)(?:/?(.*))$"] = "https://github.com/Pathoschild/SMAPI/blob/develop/docs/technical/mod-package.md#$1", // buildmsg deprecated, remove when SDV 1.4 is released
[@"^/community\.?$"] = "https://stardewvalleywiki.com/Modding:Community",
- [@"^/compat\.?$"] = "https://smapi.io/mods",
[@"^/docs\.?$"] = "https://stardewvalleywiki.com/Modding:Index",
[@"^/help\.?$"] = "https://stardewvalleywiki.com/Modding:Help",
[@"^/install\.?$"] = "https://stardewvalleywiki.com/Modding:Player_Guide/Getting_Started#Install_SMAPI",
[@"^/troubleshoot(.*)$"] = "https://stardewvalleywiki.com/Modding:Player_Guide/Troubleshooting$1",
- [@"^/xnb\.?$"] = "https://stardewvalleywiki.com/Modding:Using_XNB_mods"
+ [@"^/xnb\.?$"] = "https://stardewvalleywiki.com/Modding:Using_XNB_mods",
+
+ // GitHub docs
+ [@"^/package(?:/?(.*))$"] = "https://github.com/Pathoschild/SMAPI/blob/develop/docs/technical/mod-package.md#$1",
+
+ // legacy redirects
+ [@"^/compat\.?$"] = "https://smapi.io/mods"
}))
// legacy paths