commit | 28a7f879f1964bdb6d056dc2e5c7199bc7ad041b | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Thu Aug 12 17:06:48 2021 -0400 |
committer | Russ Cox <rsc@golang.org> | Fri Aug 13 19:21:23 2021 +0000 |
tree | 1945a956620ead9dd5d079601239cbbf5e5a4d3e | |
parent | 42b41e29afe56143937400536335f0107c3f3fd6 [diff] |
cmd/golangorg: serve m.golang.org redirect When we set up Gmail for golang.org a decade ago, we also configured Gmail to serve m.golang.org as a shortcut to redirect to the full Gmail URL for golang.org. It still does, but only if you connect to http://m.golang.org/. CL 122175 broke the m.golang.org redirect back in summer 2018 by setting an HSTS Strict-Transport-Security header with includeSubdomains, so that visiting golang.org stops the browser from being willing to visit http://m.golang.org/. It goes straight to https, which fails. I have been annoyed for years that this was broken, but I wasn't sure when it started and never took the time to track down what was wrong. This CL fixes m.golang.org by serving the redirect ourselves. Change-Id: I290bb2fe7fc7a415d00162776ecc54527e431c61 Reviewed-on: https://go-review.googlesource.com/c/website/+/341710 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Website-Publish: Russ Cox <rsc@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This repo holds content and serving programs for the golang.org web site.
Content is in _content/. Server code is in cmd/ and internal/.
To run the server to preview local content changes, use:
go run ./cmd/golangorg
The supporting programs cmd/admingolangorg and cmd/googlegolangorg are the servers for admin.golang.org and google.golang.org. (They do not use the _content/ directory.)
Each command directory has its own README.md explaining deployment.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
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 website 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.