Clicking on an image attachment link within an issue renders a 404
Summary
Clicking an image link within an issue results in a 404 response due to a duplicate .png
file extension being applied to the image path.
Steps to reproduce
- View this comment - #18312 (comment 214999800)
- Click on the image URL
- View 404 and take note of the URL
https://gitlab.com/uploads/gitlab-org/gitlab-foss/a0ccc0275598b70d3915d7aca4e82ee2/tooltip.png.png
This also happens on other issues that use the attachment link -#16717 (comment 214926025). Removing the extra .png
from the URL resolves the problem.
Example Project
- See URL in steps to repro
What is the current bug behavior?
- 404s
What is the expected correct behavior?
- Render the correct image path so there is no 404
Relevant logs and/or screenshots
- Don't need a screenshot. Go here - https://gitlab.com/uploads/gitlab-org/gitlab-foss/aeb8c4bd4592af4472d1d431f41d463d/image.png.png
Output of checks
- This bug happens on GitLab.com
/cc @johnhope