summaryrefslogtreecommitdiffhomepage
path: root/website/cmd/server/main.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2020-07-01 08:51:57 -0700
committergVisor bot <gvisor-bot@google.com>2020-07-01 08:53:44 -0700
commit068716ddf36f4dcb3d88e92b90774dcba2fe4db8 (patch)
treea0abeab205edb43b42a73d8d5bddce55cba4f72d /website/cmd/server/main.go
parentcda2979b63fad37a33706f8aa430664a9c4d0b3b (diff)
Fix FAQ URL
The existing gvisor.dev/faq link returns 404 because the full URL has mistakenly been capitalized. PiperOrigin-RevId: 319233173
Diffstat (limited to 'website/cmd/server/main.go')
-rw-r--r--website/cmd/server/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/website/cmd/server/main.go b/website/cmd/server/main.go
index 7c8bc9bfa..c401b6abd 100644
--- a/website/cmd/server/main.go
+++ b/website/cmd/server/main.go
@@ -35,6 +35,10 @@ var redirects = map[string]string{
// For links.
"/faq": "/docs/user_guide/faq/",
+ // From 2020-05-12 to 2020-06-30, the FAQ URL was uppercase. Redirect that
+ // back to maintain any links.
+ "/docs/user_guide/FAQ/": "/docs/user_guide/faq/",
+
// Redirects to compatibility docs.
"/c": "/docs/user_guide/compatibility/",
"/c/linux/amd64": "/docs/user_guide/compatibility/linux/amd64/",