Navigation Menu

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/pkgsite: add a way to opt in to https://beta.pkg.go.dev/ #42260

Closed
myitcv opened this issue Oct 28, 2020 · 2 comments
Closed

x/pkgsite: add a way to opt in to https://beta.pkg.go.dev/ #42260

myitcv opened this issue Oct 28, 2020 · 2 comments
Labels
FrozenDueToAge help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite

Comments

@myitcv
Copy link
Member

myitcv commented Oct 28, 2020

What is the URL of the page with the issue?

https://pkg.go.dev/

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.59 Safari/537.36

Screenshot

n/a

What did you do?

Visited https://pkg.go.dev/

What did you expect to see?

I would like to be able to set a cookie/other that allows https://pkg.go.dev/ to in effect be https://beta.pkg.go.dev/, in much the same way that users can opt-in to being redirected to https://pkg.go.dev/ from godoc.

What did you see instead?

No option to "opt in" to https://beta.pkg.go.dev/

@myitcv myitcv added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite labels Oct 28, 2020
@gopherbot gopherbot added this to the Unreleased milestone Oct 28, 2020
@jamalc jamalc modified the milestones: Unreleased, pkgsite/unplanned Oct 29, 2020
@julieqiu
Copy link
Member

julieqiu commented Nov 2, 2020

If anyone is interested in working on this feature, here's the code for how users can opt-in to always being redirected from godoc.org to pkg.go.dev: https://github.com/golang/gddo/blob/721e228c7686d830b5decc691a4dc7e6a6e94888/gddo-server/main.go#L1161

@gopherbot
Copy link

Change https://golang.org/cl/278875 mentions this issue: internal/middleware: add option to redirect requests to beta.pkg.go.dev

@golang golang locked and limited conversation to collaborators Feb 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite
Projects
None yet
Development

No branches or pull requests

4 participants