Fix related merge requests not working with relative URL root See merge request gitlab-org/gitlab-ce!27475