Fix line anchor hrefs for legacy viewers
What does this MR do and why?
Fixes line anchor hrefs when viewing source code via legacy viewers
Changelog: fixed (the bug was introduced in the same release but I included a changelog in case the fix does not make the %16.9 release)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Open a
.haml
file via the repository files browser - Hover over an open area in the line numbers gutter
- Right-click and copy the link
- The copied link should not contain
#LC
, it should contain#L
Related to #441159 (closed)
Edited by Jacques Erasmus