diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2017-12-08 00:24:15 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2017-12-08 00:24:15 +0300 |
commit | 73a79f7efbd8dec42b4a344faa3df5bf1c57a315 (patch) | |
tree | be295a0dce572c62f2f0ae97bec77d5c8aea189a | |
parent | 52ee3e0e06b3666d5f8545ce9e7eba3342088b48 (diff) | |
parent | 88f268b5e5d4327529f74484f82ae860eb13978b (diff) |
Merge branch '40555-replace-absolute-urls-with-related-branches-to-avoid-hostname' into 'master'
Replace absolute URLs on related branches/MRs with relative url to avoid hostname
Closes #40555
See merge request gitlab-org/gitlab-ce!15735
-rw-r--r-- | app/views/projects/issues/show.html.haml | 4 | ||||
-rw-r--r-- | changelogs/unreleased/40555-replace-absolute-urls-with-related-branches-to-avoid-hostname.yml | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml index 431d5a58daf..2f7aece7440 100644 --- a/app/views/projects/issues/show.html.haml +++ b/app/views/projects/issues/show.html.haml @@ -74,10 +74,10 @@ = edited_time_ago_with_tooltip(@issue, placement: 'bottom', html_class: 'issue-edited-ago js-issue-edited-ago') - #merge-requests{ data: { url: referenced_merge_requests_project_issue_url(@project, @issue) } } + #merge-requests{ data: { url: referenced_merge_requests_project_issue_path(@project, @issue) } } // This element is filled in using JavaScript. - #related-branches{ data: { url: related_branches_project_issue_url(@project, @issue) } } + #related-branches{ data: { url: related_branches_project_issue_path(@project, @issue) } } // This element is filled in using JavaScript. .content-block.emoji-block diff --git a/changelogs/unreleased/40555-replace-absolute-urls-with-related-branches-to-avoid-hostname.yml b/changelogs/unreleased/40555-replace-absolute-urls-with-related-branches-to-avoid-hostname.yml new file mode 100644 index 00000000000..4f0eaf8472f --- /dev/null +++ b/changelogs/unreleased/40555-replace-absolute-urls-with-related-branches-to-avoid-hostname.yml @@ -0,0 +1,6 @@ +--- +title: Fix related branches/Merge requests failing to load when the hostname setting + is changed +merge_request: +author: +type: fixed |