x/pkgsite: add testcase for stdlib shortcut in frontend.TestServer #39663
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
pkgsite
Milestone
In frontend.servePackagePageNew, we make a call to s.stdlibPathForShortcut so that the request will redirect if it makes a stdlib shortcut. For example, a request to pkg.go.dev/http will redirect to pkg.go.dev/net/http.
We should add a test case for this in frontend.TestServer.
Related: #39621
The text was updated successfully, but these errors were encountered: