diff options
author | Stan Hu <stanhu@gmail.com> | 2019-01-23 04:49:26 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-01-23 04:56:25 +0300 |
commit | 494e00caa3c24480592833cf1b223e34c1a2bfb2 (patch) | |
tree | d076abdde96e3875870907ae7dbe68712ceeef5b /changelogs | |
parent | 5cf994043fbf8669120e52f7fc345f9168a0d77b (diff) |
Fix 404s for snippet uploads when relative URL root used
Personal snippet uploads have neither a group nor a project. If a GitLab
instance were configured with a relative URL root (e.g. `/gitlab`), then
the Markdown filter would not include this root in the generated path.
We fix this by adding this root if there is no group or project.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56280
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/sh-fix-upload-snippets-with-relative-url-root.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-fix-upload-snippets-with-relative-url-root.yml b/changelogs/unreleased/sh-fix-upload-snippets-with-relative-url-root.yml new file mode 100644 index 00000000000..8bc1e4b4f8a --- /dev/null +++ b/changelogs/unreleased/sh-fix-upload-snippets-with-relative-url-root.yml @@ -0,0 +1,5 @@ +--- +title: Fix 404s for snippet uploads when relative URL root used +merge_request: 24588 +author: +type: fixed |