Skip to content

x/pkgsite: source file links for unknown hosts should not link to self #73333

@runxiyu

Description

@runxiyu

What is the URL of the page with the issue?

https://pkg.go.dev/go.lindenii.runxiyu.org/forge@v0.1.41/forged/cmd/forge

What is your user agent?

Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0

Screenshot

Image

What did you do?

I host some projects on an uncommon software forge.

Tree links are like /tree/dir/dir/file appended to the repo root.

What did you see happen?

The View all Source files and main.go anchors refer back to the same page on pkgsite.

What did you expect to see?

Both links are removed or greyed out to indicate that pkgsite does not know the URL scheme of the forge.

See also: #69638

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.pkgsite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions