x/pkgsite: handle queries with https:// and http:// scheme(strip schemes from searches) #40141
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
Milestone
What did you do?
Go to pkg site and search
https://github.com/godbus/dbus
.https://pkg.go.dev/
Doesn't work with scheme:
https://pkg.go.dev/search?q=https%3A%2F%2Fgithub.com%2Fgodbus%2Fdbus
Works without scheme:
https://pkg.go.dev/github.com/godbus/dbus?tab=doc
PS I am aware package names do not include the scheme. This is more an ease of use search feature.
What did you expect to see?
Results for
github.com/godbus/dbus
What did you see instead?
404 page
I believe
https://
andhttp://
should automatically be stripped from queries. You should be able to easily copy a url from a repo site like github and paste into the search without modifying for projects which don't have a doc link setup. This is very common and should be handled automatically.The text was updated successfully, but these errors were encountered: