Use relative URL for assets
Zendesk issue: https://gitlab.zendesk.com/agent/tickets/15482
Observed behavior
In a situation where GitLab is accessed both through HTTP and HTTPS, assets are not correctly served up for both protocols. Assume the external_url
is configured with the HTTPS URL, then all assets are attempting to serve of HTTPS. This causes further problems when GitLab is accessed by another URL.
Expected behavior
Assets should be served in a relative way so that protocol and URL are dynamic. Does Rails allow this?
It does seem to be a unique use-case, but this customer has encountered numerous problems and claims they cannot move all users to the external_url
on HTTPS due to many existing processes.
cc/ @DouweM @rspeicher Is this possible in Rails?