Skip to content

Fix scrolling to anchor tags on wiki pages

What does this MR do and why?

This MR readds the functionality to scroll to an anchor tag on a Wiki page that was inadvertently removed when Wiki pages were changed to deferred loading.

Screenshots or screen recordings

Before After
Screen_Recording_2022-07-09_at_10.48.08 Screen_Recording_2022-07-09_at_10.42.51

How to set up and validate locally

  1. Create a long wiki page that is longer than the window height.
  2. Add a level 1 heading such as # Colonial Internet towards the bottom of the page
  3. On the rendered page to the left of the heading, hover over the heading and right click and copy the link
  4. Paste the link in a new tab and see that the page scrolls to the heading after the wiki page has rendered

MR acceptance checklist

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

Related to #362163 (closed)

Merge request reports