x/pkgsite: redirect based on custom import paths #44520
What is the URL of the page with the issue?
What is your user agent?
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
What did you do?
Navigated to https://pkg.go.dev/github.com/SSLMate/go-pkcs12
What did you expect to see?
Be redirected to the documentation for
godoc.org exhibited the expected behavior.
What did you see instead?
I saw documentation for the package
The text was updated successfully, but these errors were encountered:
The reason is because https://pkg.go.dev/github.com/SSLMate/go-pkcs12 is showing the latest version (v0.0.0-20201103104416-57fc603b7f52) where it was still the canonical import path. If that version didn't exist on pkg.go.dev, it would redirect to pkg.go.dev/software.sslmate.com/src/go-pkcs12.
We're planning to fix this as part of #44437.