Thumbs-up in merge-requests is not working for Gitlab with relative URL
Summary
Since 13.12 it is not possible to give thumbs-up in merge-requests when gitlab is configured with a relative URL (external_url, https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-a-relative-url-for-gitlab)
Steps to reproduce
- Go to a merge request
- Click thumbs-up
What is the current bug behavior?
Thumbs-up counter stays at zero.
What is the expected correct behavior?
Thumbs-up counter should increment.
Relevant logs and/or screenshots
Loading merge-request: GET https://example.com/api/v4/projects/123/merge_requests/456/award_emoji?per_page=100&page=1 Clicking thumbs-up: POST https://example.com/api/v4/projects/123/merge_requests/456/award_emoji
In both requests the configured path /gitlab is missing, therefore it fails.
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.7.2p137 Gem Version: 3.1.4 Bundler Version:2.1.4 Rake Version: 13.0.3 Redis Version: 6.0.12 Git Version: 2.31.1 Sidekiq Version:5.2.9 Go Version: unknown GitLab information Version: 13.12.1 Revision: bec931306a7 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.6 URL: https://example.com/gitlab HTTP Clone URL: https://example.com/gitlab/some-group/some-project.git SSH Clone URL: git@example.com:some-group/some-project.git Using LDAP: yes Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 13.18.0 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git