Skip to content

H1's are hidden when you access them with an anchor

When you link to an H1 anchor in a new window, the H1 heading is hidden. In this example, if you have the site up and running locally on port 3004, click this link:

http://localhost:3004/ee/user/permissions.html#permissions-and-roles

If not, click: https://docs.gitlab.com/ee/user/permissions.html#permissions-and-roles

Actual:

image

Expected:

image

Possible solutions:

Either jump to the H1 itself, or somehow disable the ability to use an H1 anchor.

The in-docs search uses the H1 anchor and it shouldn't. Nowhere else do we link to the H1 anchor.

Edited by Suzanne Selhorn