commit | 125903299063e3a1a968760b03d662c5ad73a9a1 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@google.com> | Mon May 17 16:17:50 2021 -0400 |
committer | Russ Cox <rsc@google.com> | Mon May 24 23:12:15 2021 -0400 |
tree | 65c81e9e8c44cd3d66465bf3549a01d2573a8d28 | |
parent | 9f4cce61e852241d324674d07d018531d0b5f6d9 [diff] |
[x/go.dev] all: replace aliases with redirects Putting an "aliases" list into a page means that you cannot serve any page at all until you have loaded every single page in the site, because maybe one will list the URL you want to serve as an alias. Turning it around, we can create pages for the URLs we want to serve and simply mark them as redirects to the real pages. Now you can serve any page by opening the file and looking at what is there. There's no need to reload every single page in the site just to answer a single request. We made (and corrected) this mistake in the main site as well. It is an obvious thing to do. Replace aliases with redirects. Change-Id: Ib31bf48e2a6fa6f384011381dcae6bbfcaf11f95 X-GoDev-Commit: 8dcbcab6097450c570ca42101c2ea3218a8f1c62
This repository holds the Go Website server code and content.
The easiest way to install is to run go get -u golang.org/x/website
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/website
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/website:” in the subject line, so it is easy to find.