Skip to content

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

@bradfitz

Description

@bradfitz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.help wantedpkgsite

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions