Line linking in diffs does not show the targetted line

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Summary

spec/features/merge_request/user_sees_diff_spec.rb:50 started failing frequently and had to be quarantined due to this bug

Linking directly to a diff line does not sure the desired line.

Bug details !166798 (comment 2128156493) Test failure issue: #454628 (moved)

Reproduction Steps via rspec: rspec spec/features/merge_request/user_sees_diff_spec.rb:50

or

  1. Go to !165761 (comment 2128585885)
  2. Click on the file path in the diff file header
  3. Page switches to the Changes tab but doesn't scroll to the target file
  4. If you click on a closest file to that in the file browser the scroll will completely break

Edited Jan 16, 2026 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading