FIX: Use CDN for logos and icons. (#6698)

This commit is contained in:
Bianca Nenciu
2018-12-19 11:20:48 +02:00
committed by Régis Hanol
parent 1ab91f0474
commit 2eefe6d5d6
4 changed files with 34 additions and 15 deletions

View File

@ -22,4 +22,10 @@ module GlobalPath
end
end
def full_cdn_url(url)
uri = URI.parse(UrlHelper.absolute(upload_cdn_path(url)))
uri.scheme = SiteSetting.scheme if uri.scheme.blank?
uri.to_s
end
end