Pipeline Security Details: Remove double hash from link to file location
Summary
When viewing the details of a finding that contains a link to a location, the URL contains two hashes to the LOC:
Steps to reproduce
- Go to https://gitlab.com/gitlab-examples/security/security-reports/-/pipelines/1078659009/security
- Click a finding result (SAST) to load the modal
- Check the link that goes to the file location
What is the current bug behaviour
The link includes two hashes
Possible fixes
The URL to the file is constructed using the given blob-path. This path is handled differently in different locations. Currently there are 4 endpoints that provide the data. Until we have aligned them all to always include the line number, we need to add a check to the frontend and only append it if it is not there yet.
See POC MR: !140186 (closed)