Job retry URL results in 404
Summary
When opening the url under the CI job retry button in a new window (or from another window which is my actual use case) it results in a 404 page.
Steps to reproduce
Have a CI job completed or cancelled
Go to the job details page
Open the retry button in a new window
Example Project
https://gitlab.com/Pandabehr/example/-/jobs/182266055/retry (404)
https://gitlab.com/Pandabehr/example/-/jobs/182266055 (clicking directly on the button works)
What is the current bug behavior?
The page results in a 404
What is the expected correct behavior?
The job should be retried and output from the job should be visible on the page
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com