x/pkgsite: Badge generator creates wrong links if provided with HTTP scheme #43458
What is the URL of the page with the issue?
What did you do?
I entered a URL to a GitHub repository for a Go project of mine, but inclusive of the scheme
What did you expect to see?
A badge URL correctly generated with the scheme stripped but
What did you see instead?
If you enter a full URL to a GitHub repo for your Go project, including the HTTP scheme, the badge generator will strip the domain name. For example:
While I imagine it is expected to provide a URL without scheme as with Go imports, the resulting stripping of the domain name is counter intuitive and an issue some might not notice straight away.
The text was updated successfully, but these errors were encountered: