-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal: direct user to latest major version in current package
Currently, the pkgsite allows the user to click a link to be taken to the latest major version for that module. When a user is in a sub package, clicking this link transports them to the top of the directory, rather than the latest major version for that package. Changes the behaviour of the link by directing to the latest major version of the currently viewed package. If the package does not exist in the latest major version, it falls back to the root of the module. The direct proxy datasource implementation does not attempt to perform this resolution and maintains the current behaviour. Fixes golang/go#42292 Change-Id: I6c17978034f87ceddb0edeae3894ce2cd4913fd2 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/274413 Trust: Julie Qiu <julie@golang.org> Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
- Loading branch information
Showing
12 changed files
with
386 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.