"Your Review" pending comment links are broken in "Show one file at a time" diff view mode

Summary

The pending comment links in "Your Review" do not work. They navigate to the diff view, but show no file at all when in "Show one file at a time" mode.

Presumably related to #554707 (closed).

Steps to reproduce

  1. Go into a review diff
  2. Add a comment into review
  3. Open "Your Review"
  4. Click the "pending comment" link

What is the current bug behavior?

The link links to the diff view, but to no file. The comment note anchor is evidently not sufficient - does not lead to the file being shown.

What is the expected correct behavior?

I see the file the comment is on, and the pending comment.

Relevant logs and/or screenshots

screenshot of no file shown in diff view after clicking pending comment link

Results of GitLab environment info

It's the current GitLab version 18.1.1 via omnibus installation. I don't currently have root access to the server due to internal role sync issues.

Possible fixes

Patch release information for backports

If the bug fix needs to be backported in a patch release to a version under the maintenance policy, please follow the steps on the patch release runbook for GitLab engineers.

Refer to the internal "Release Information" dashboard for information about the next patch release, including the targeted versions, expected release date, and current status.

Edited by 🤖 GitLab Bot 🤖