FIX: Fix broken theme field URLs. (#6622)

This commit is contained in:
Bianca Nenciu
2018-11-23 17:11:05 +02:00
committed by Régis Hanol
parent 336436dfb4
commit 172b3bf4d3
4 changed files with 33 additions and 6 deletions

View File

@ -4,7 +4,7 @@ module GlobalPath
end
def cdn_path(p)
"#{GlobalSetting.cdn_url}#{path(p)}"
GlobalSetting.cdn_url.blank? ? p : "#{GlobalSetting.cdn_url}#{path(p)}"
end
def upload_cdn_path(p)