summaryrefslogtreecommitdiffhomepage
path: root/website
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
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')
-rw-r--r--website/_includes/footer-links.html2
-rw-r--r--website/cmd/server/main.go4
2 files changed, 5 insertions, 1 deletions
diff --git a/website/_includes/footer-links.html b/website/_includes/footer-links.html
index 10c28ead4..2036dbaa9 100644
--- a/website/_includes/footer-links.html
+++ b/website/_includes/footer-links.html
@@ -15,7 +15,7 @@
<ul class="list-unstyled">
<li><a href="https://github.com/google/gvisor/issues">Issues</a></li>
<li><a href="/docs">Documentation</a></li>
- <li><a href="/docs/user_guide/FAQ">FAQ</a></li>
+ <li><a href="/docs/user_guide/faq">FAQ</a></li>
</ul>
</div>
<div class="col-sm-3 col-md-2">
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/",