Fixes the web IDE not working when GitLab is used setup with relative URLs. This was caused by some manual URL building in the Ruby helper.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/45649