Clicking "Cancel" in the "Resolve this thread in a new issue" form navigates back to the issue search page instead of the merge request page

Summary

See title 🙂

Steps to reproduce

  1. Open a merge request
  2. Open a new discussion thread in the merge request
  3. In the discussion thread, click the "Resolve this thread in a new issue" button
  4. Click "Cancel"

What is the current bug behavior?

The "Cancel" button redirects to the issue search page (i.e. https://example.gitlab.com/user/project/issues).

What is the expected correct behavior?

The "Cancel" button should redirect back to the previous page - the merge request page (i.e. https://example.gitlab.com/user/project/merge_requests/id).

Output of checks

This bug happens on GitLab.com.

Assignee Loading
Time tracking Loading