Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
download: redirect to docs/introduction/installation
This change unifies our handling of install-related URLs/docs, suitable for go-live, but allowing each affected URL to have unique content written for it as & when we choose. It does this by: - re-enabling Hugo's "aliases" (client-side redirects) - teaching /docs/introduction/installation that it has these aliases: - /docs/install - /download - /install - /dl - removing the Netlify-level redirection of /download to /docs/install (which was a 404 until this change) These aliases' redirections will get overwritten by any page content that's created for the above 4 URLs in the future, as per https://gohugo.io/content-management/urls/#how-aliases-work. So, *unlike* the Netlify redirect, future content authors won't have to figure out why content added at /download doesn't get served. There should be no SEO impact, as the client-side redirect provides a "canonical" link element alongside a meta robots element that should stop the alias getting indexed. The only consumer who will be affected by this change will be those using user-agents that don't follow or expose meta-based redirections (`http-equiv="refresh"`), such as Curl. Given the human-centric nature of this page's content, this doesn't seem onerous. For: cue-lang/docs-and-content#52 For: cue-lang/docs-and-content#63 Preview-Path: /docs/install Preview-Path: /download Preview-Path: /install Preview-Path: /dl Change-Id: I99a04f6a1520dd309f1cc00751ac00abc31e7b28 Signed-off-by: Jonathan Matthews <github@hello.jonathanmatthews.com> Reviewed-on: https://review.gerrithub.io/c/cue-lang/cuelang.org/+/1168925 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Paul Jolly <paul@myitcv.io>
- Loading branch information