golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 266 forks source link

godoc: page links are wrong for method receivers #594

Open bwjohnson-ss opened 5 years ago

bwjohnson-ss commented 5 years ago

On the docs page for base64, if you go to the Variables section the definition for this constant:

var RawStdEncoding = StdEncoding.WithPadding(NoPadding)

Automatically provides links for StdEncoding, WithPadding and NoPadding.

The heading anchor link for WithPadding goes to #WithPadding, but on that same page, the anchor generated for the heading uses the prefix of the receiver type Encoding so the full anchor is Encoding.WithPadding

<h3 id="Encoding.WithPadding">

I'm not sure if there are other places where the same issue is present.