8000 x/pkgsite: markdown links in README pages redirect to raw.githubusercontent.com/ · Issue #52683 · golang/go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content 8000
x/pkgsite: markdown links in README pages redirect to raw.githubusercontent.com/ #52683
Closed
@katiehockman

Description

@katiehockman

What is the URL of the page with the issue?

https://pkg.go.dev/github.com/DataDog/dd-trace-go#section-readme has an example, but it's not specific to this page.

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36

What did you do?

Clicked a link in the README to go to a markdown page.

What did you expect to see?

Clicking the link would take me to page where I can see the markdown file rendered correctly.

What did you see instead?

It looks like pkg.go.dev redirects README links that point to github.com to raw.githubusercontent.com. This is unfortunate for markdown files since raw.githubusercontent.com doesn’t render markdown correctly. Ideally, pkg.go.dev wouldn't redirect those links if it was a markdown file, or just change these links to be relative links, e.g. [...](CONTRIBUTING.md)

https://pkg.go.dev/cuelang.org/go#section-readme is an example of a page that uses relative links to correctly link to the github page that correctly renders the markdown (e.g. "Installing CUE")

/cc @findleyr @seankhliao

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0