`expose_url` helper does not include custom base url if it is set
Method expose_url
(used in the API) does not include base url, if set, in the resulted URL.
This is the result when the base url is set to /gitlab
:
{
"id": 1,
"description": "Autem expedita optio est placeat libero consequuntur officia laboriosam.",
"name": "Gitlab Test",
"name_with_namespace": "Gitlab Org / subgroup_gitlab_org / Gitlab Test",
"path": "gitlab-test",
"path_with_namespace": "gitlab-org/gitlab-org/gitlab-test",
"created_at": "2018-02-13T11:45:34.346Z",
"default_branch": "master",
"tag_list": [],
"ssh_url_to_repo": "ssh://user@localhost:2222/gitlab-org/gitlab-org/gitlab-test.git",
"http_url_to_repo": "http://gitlab.example.com:3000/gitlab/gitlab-org/gitlab-org/gitlab-test.git",
"web_url": "http://gitlab.example.com:3000/gitlab/gitlab-org/gitlab-org/gitlab-test",
"avatar_url": null,
"star_count": 0,
"forks_count": 0,
"last_activity_at": "2018-03-07T17:00:19.014Z",
"_links": {
"self": "http://gitlab.example.com:3000/api/v4/projects/1",
"issues": "http://gitlab.example.com:3000/api/v4/projects/1/issues",
"merge_requests": "http://gitlab.example.com:3000/api/v4/projects/1/merge_requests",
"repo_branches": "http://gitlab.example.com:3000/api/v4/projects/1/repository/branches",
"labels": "http://gitlab.example.com:3000/api/v4/projects/1/labels",
"events": "http://gitlab.example.com:3000/api/v4/projects/1/events",
"members": "http://gitlab.example.com:3000/api/v4/projects/1/members"
},
...
Instead, all urls inside the _links
param shoudl start with http://gitlab.example.com:3000/gitlab
/cc @DouweM