Skip to content

x/website: google search results have incorrect title for documentation pages #47805

@prashantv

Description

@prashantv

What did you do?

Search google for "golang net http",
https://www.google.com/search?q=net+http+golang

What did you expect to see?

The first result to be the documentation for net/http and the title of the result to be the title of the page, http · net/http · pkg.go.dev

What did you see instead?

The first result was the correct URL, but the title is incorrect: Documents - The Go Programming Language

Screenshot:
image


This problem seems to affect subpackages, and different searches have different results. E.g., searching for ioutil,
https://www.google.com/search?q=ioutil+golang
has a title of io.ioutil.ReadAll - The Go Programming Language (picks a specific function).

I think this change is related to the stdlib being redirected to pkg.go.dev (referenced in https://go.dev/blog/tidy-web)

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions