Wiki - drop links for upload files into "uploads" dir
Summary
Wiki links drops if use /uploads directory (gollum default upload directory for files).
Steps to reproduce
- Upload a file my-file.zip in directory named uploads into root wiki dir.
- Into a page, insert:
[My File](/uploads/my-file.zip)
Expected behavior
Link to file like this: https://gitlab.com/GROUP/PROJECT/wikis/uploads/my-file.zip
Actual behavior
Link to file like this: https://gitlab.com/GROUP/PROJECT/uploads/my-file.zip
(/wikis/
doesn't appear)
Relevant logs and/or screenshots
No needed.
Output of checks
Results of GitLab application Check
No needed.
Results of GitLab environment info
No needed.
Possible fixes
I'm using hosted GitLab services and I don't have download source code but the issue seems to be appears only when the directory name is uploads (maybe is intercept for /public/uploads/ usage?).