golang/go

x/pkgsite: golang.org redirects /pkg/foo/ to another redirect

オープン

#54,081 opened on 2022/07/27

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Go (19,008 件のフォーク)batch import
NeedsFixhelp wantedpkgsite

Repository metrics

Stars
 (133,883 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

The golang.org /pkg/ redirect pages redirect to another redirect:

bradfitz@book1pro ~ % curl -I https://golang.org/pkg/crypto/tls/
HTTP/2 301 
content-type: text/html; charset=utf-8
location: https://go.dev/pkg/crypto/tls/
date: Wed, 27 Jul 2022 02:23:28 GMT
server: Google Frontend

But that location (https://go.dev/pkg/crypto/tls/) serves another redirect:

bradfitz@book1pro ~ % curl -I https://go.dev/pkg/crypto/tls/
HTTP/2 307 
content-type: text/html; charset=utf-8
location: https://pkg.go.dev/crypto/tls
date: Wed, 27 Jul 2022 02:24:40 GMT
server: Google Frontend

Just have golang.org redirect to the version without the trailing slash instead?

コントリビューターガイド