Skip to content

Fix line anchor hrefs for legacy viewers

Jacques Erasmus requested to merge 441159-fix-line-anchors into master

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
Screenshot_2024-02-09_at_16.31.28 Screenshot_2024-02-09_at_16.31.40

How to set up and validate locally

  1. Open a .haml file via the repository files browser
  2. Hover over an open area in the line numbers gutter
  3. Right-click and copy the link
  4. The copied link should not contain #LC, it should contain #L

Related to #441159 (closed)

Edited by Jacques Erasmus

Merge request reports