x/pkgsite: Remove hardcoded references to pkg.go.dev #48603
There are quite a few places where the strings “pkg.go.dev” and “beta.pkg.go.dev” are hardcoded into pkgsite.
When self-hosting, this causes a few bugs, especially where pkgsite redirects the user to https://pkg.go.dev instead of the current host.
It would probably be useful in templates if a Config.SitePath(string) helper method could append an arbitrary path to the site name.
Search: “pkg.go.dev” literal, excluding tests:
The text was updated successfully, but these errors were encountered: