Fix related merge requests not working with relative URL root
When GitLab is configured with a relative URL root (e.g. /gitlab), an error appeared, "Something went wrong while fetching related merge requests." This change ensures the relative URL is included.
This commit is contained in:
parent
ce02daea08
commit
31b4e54e86
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@
|
|||
|
||||
= edited_time_ago_with_tooltip(@issue, placement: 'bottom', html_class: 'issue-edited-ago js-issue-edited-ago')
|
||||
|
||||
#js-related-merge-requests{ data: { endpoint: api_v4_projects_issues_related_merge_requests_path(id: @project.id, issue_iid: @issue.iid), project_namespace: @project.namespace.path, project_path: @project.path } }
|
||||
#js-related-merge-requests{ data: { endpoint: expose_url(api_v4_projects_issues_related_merge_requests_path(id: @project.id, issue_iid: @issue.iid)), project_namespace: @project.namespace.path, project_path: @project.path } }
|
||||
|
||||
- if can?(current_user, :download_code, @project)
|
||||
#related-branches{ data: { url: related_branches_project_issue_path(@project, @issue) } }
|
||||
|
|
Loading…
Reference in a new issue