x/pkgsite: add a 'y' keyboard shortcut to canonicalise URL with version #36807
Milestone
Comments
I'll like to take this on |
Ready for review https://go-review.googlesource.com/c/pkgsite/+/239179!. I used GIthub's behaviour of the URL update does not reload page (it simply replaces history). |
Change https://golang.org/cl/239179 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/govim/govim/cmd/govim/config?tab=doc
What is your user agent?
Screenshot
What did you do?
Navigated to said page.
What did you expect to see?
On GitHub, the
y
keyboard shortcut allows the viewer to canonicalise the URL for the version of a file you are viewing:For example, at the time of writing, hitting
y
whilst on:https://github.com/govim/govim/blob/master/cmd/govim/config/config.go
updates the address bar URL to be:
https://github.com/govim/govim/blob/013f992e25f23cbc4a778d1eb472e719d276de32/cmd/govim/config/config.go
I think a similar option should be offered on pkg.go.dev. For example, at the time of writing, hitting
y
whilst on:https://pkg.go.dev/github.com/govim/govim/cmd/govim/config?tab=doc
would update the address bar URL to be:
https://pkg.go.dev/github.com/govim/govim@v0.0.27/cmd/govim/config?tab=doc
What did you see instead?
No option to do this.
The text was updated successfully, but these errors were encountered: