Incorrect go-import metadata when using a relative url
Summary
The added sub-directory is not included in the metadata when using a relative url.
Steps to reproduce
Configure a new gitlab-ce using external_url=https://example.com/gitlab
Create a go project and attempt to retrieve the metadata
curl example.com/gitlab/group/project?go-get=1
An incorrect metadata tag is returned. See bug behavior.
Example Project
N/A
What is the current bug behavior?
When you curl example.com/gitlab/group/project?go-get=1 the following is returned:
<html><head><meta name="go-import" content="example.com/group/project git https://example.com/group/project.git" /></head></html>
What is the expected correct behavior?
<html><head><meta name="go-import" content="example.com/gitlab/group/project git https://example.com/gitlab/group/project.git" /></head></html>