Skip to content

Put link to a blob in the diff file title

What does this MR do and why?

This MR moves blob link from the diff file options to the diff file header title when using Rapid Diffs. It also forces link to open a new tab.

Screenshots or screen recordings

Before After
Screen_Recording_2025-06-25_at_13.43.31 Screen_Recording_2025-06-25_at_13.39.02

How to set up and validate locally

  1. Enable rapid_diffs and rapid_diffs_on_mr_show
  2. Visit any merge request
  3. Select 'Changes' tab
  4. Add ?rapid_diffs=true to the URL, follow it
  5. Click on any of the diff file titles
  6. Observe a blob page open in a new tab

Merge request reports

Loading