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
- Create a long wiki page that is longer than the window height.
- Add a level 1 heading such as
# Colonial Internet
towards the bottom of the page - On the rendered page to the left of the heading, hover over the heading and right click and copy the link
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #362163 (closed)