x/pkgsite: display banner when user is redirected to a canonical import path #43693
Milestone
Comments
Change https://golang.org/cl/283622 mentions this issue: |
Change https://golang.org/cl/283619 mentions this issue: |
Change https://golang.org/cl/283716 mentions this issue: |
gopherbot
pushed a commit
to golang/pkgsite
that referenced
this issue
Jan 14, 2021
Logic for getting and setting a flash cookie is added. This will be used for the redirected from banner. For golang/go#43693 Change-Id: I7d07eb1ee4beeefe33e9b20a10ce3581504ade57 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/283619 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
gopherbot
pushed a commit
to golang/pkgsite
that referenced
this issue
Jan 14, 2021
When a request to /<path> is redirected because it is an alternative module path, a cookie is now set with the originating path. This will be used to set the value of a banner in a future CL. For golang/go#43693 Change-Id: I92bf674c927ecd3bd00148f893c3cb12984dce6c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/283622 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why a user is redirected to a vanity import path (for example, https://pkg.go.dev/github.com/rsc/rf, which redirects to https://pkg.go.dev/rsc.io/rf), a banner will be displayed to indicate where they were redirected from:
The text was updated successfully, but these errors were encountered: