Ensure static objects URL is correctly formatted for Download button
What does this MR do and why?
This ensures that the static objects URL is correctly set for the blob header Download button
:refactor_blob_viewer
feature flag.
Screenshots or screen recordings
No visual changes are expected
before | after |
---|---|
notice the extra ? in the URL |
? is replaced with &
|
How to set up and validate locally
- Enable the Blob Viewer Refactor feature flag
Feature.enable(:refactor_blob_viewer)
- Navigate to static objects settings (Admin > Settings > Repository > External storage for repository static objects)
- Define a URL and Authentication token
- Open any file from the repository file browser in a private project
- Notice the URL for the download button
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #351555 (closed)
Edited by Paul Gascou-Vaillancourt