Skip to content

Draft: Scroll to search query on result pages

Sarah German requested to merge search-result-scroll into main

What does this MR do and why?

Scrolls the visitor down the page to the first heading that includes their search query, when landing on a page linked from search results.

Closes #1692 (closed)

Screenshots, screen recordings, or links to review app

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/setup.md.

Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports