Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/website: provide redirects from go.dev to pkg.go.dev for popular repository names #62149

Open
kevinburke opened this issue Aug 18, 2023 · 2 comments
Labels
FeatureRequest NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. website

Comments

@kevinburke
Copy link
Contributor

kevinburke commented Aug 18, 2023

I tried to find the docs for chamber, a CLI tool, by typing "https://go.dev/github.com/segmentio/chamber" in a web browser. This returns a 404 - the URL I was looking for was "https://pkg.go.dev/github.com/segmentio/chamber".

It would be nice if "https://go.dev/github.com" and e.g. bitbucket, gitlab, other popular domains, redirected to https://pkg.go.dev.

Someone with access to the web analytics should be able to easily verify whether this is a popular mistake or not.

Alternatively, if you don't want to redirect, you could add custom text to the 404 page saying

Did you mean https://pkg.go.dev/(your url)

@dmitshur dmitshur added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Aug 18, 2023
@dmitshur
Copy link
Contributor

CC @golang/tools-team.

@dmitshur dmitshur added this to the Unreleased milestone Aug 18, 2023
@dmitshur dmitshur changed the title go.dev: provide redirects to pkg.go.dev for popular repository names x/website: provide redirects from go.dev to pkg.go.dev for popular repository names Aug 18, 2023
@findleyr
Copy link
Contributor

I think we should avoid partial features, as it leads to confusion and maintenance burden. For example, users getting confused as to why k8s.io modules don't get redirected, and then requesting that we add e.g. k8s.io (or some other popular module prefix) to the list of supported prefixes. Better to keep things simple: pkg.go.dev is the package documentation host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. website
Projects
None yet
Development

No branches or pull requests

4 participants