Skip to content

x/pkgsite: add testcase for stdlib shortcut in frontend.TestServer #39663

@julieqiu

Description

@julieqiu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions