External status check Retry button breaks when building URL

Summary

When a MR has a failed external status check, clicking the Retry button does nothing. This is because the code fails to correctly build the URL for the API endpoint it needs to hit.

Steps to reproduce

  1. Add an external status check to a project
  2. Open a MR with a change that will cause the external check to fail
  3. Expand the status check widget
  4. Click "Retry"

Example Project

What is the current bug behavior?

Nothing happens from users perspective when clicking the button.

What is the expected correct behavior?

Loading state should show, and API request made to trigger the external status check retry

Relevant logs and/or screenshots

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Results of GitLab application Check

Possible fixes

https://gitlab.com/gitlab-org/gitlab/-/blob/51c6950f29a7aae4636e787a708ec55cc57fea7c/ee/app/assets/javascripts/api/status_check_api.js#L5

this.mrStatusCheckRetryPath is undefined. It was defined here: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/api.js#L47