Skip to content

x/pkgsite: paragraph links work incorrectly on mobile #60347

Open
@handsomefox

Description

@handsomefox

What is the URL of the page with the issue?

https://pkg.go.dev/runtime#SetFinalizer

What is your user agent?

Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Mobile Safari/537.36

Screenshot

Screenshot_2023-05-22-19-00-00-43_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

What did you do?

  1. Got a link to a package, linking specifically to a paragraph (specifically, a function in that case)
  2. Opened the link using Chrome

What did you expect to see?

I expected to see my browser opening the link at that specific paragraph

What did you see instead?

The browser opened the link correctly, then jumped to the top of the page

Using links like: https://pkg.go.dev/runtime#:~:text=func%20SetFinalizer%20%C2%B6,will%20free%20obj does work.

Video of the issue: https://github.com/golang/go/assets/29275085/70f3e565-4cce-4b5b-bc53-9d1ade23785f

Metadata

Metadata

Assignees

No one assigned

    Labels

    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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions