Actually, this should never happen. The user-configurable component of this is the host name only. Then the web_url is built by build_gitlab_url in config/initializers/01_settings.rb (note the "://" is a constant on the url even if protocol is not present, so this would work anyway unless there was an empty host name, which is probably not allowed). i can still add a test for this if you want. Please let me know.