Anchors in markdown blobs are not scrolling to heading
Summary
When clicking a link such as https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/configuration.md#overwriting-configuration-files or entering https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/configuration.md#overwriting-configuration-files
directly into chrome, the anchor is not being scrolled to.
If you navigate to https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/configuration.md and then add #overwriting-configuration-files
and then press enter, the anchor IS scrolled to, and it will work from then on.
Steps to reproduce
- Go to https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/configuration.md#overwriting-configuration-files (chrome or FF)
Example Project
Occurs on all projects: e.g.
- https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/configuration.md#overwriting-configuration-files
- https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/mr/delete.md#options-inherited-from-parent-commands
What is the current bug behavior?
Page does not scroll to anchor
What is the expected correct behavior?
Expect page to scroll to #overwriting-configuration-files
Relevant logs and/or screenshots
Screen_Recording_2023-07-11_at_09.50.38
Output of checks
Possible fixes
Edited by Jay McCure