mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: Incorrect CDN URL for site setting uploads when s3 is enabled.
This commit is contained in:
@ -11,7 +11,8 @@ module GlobalPath
|
||||
if SiteSetting.Upload.s3_cdn_url.present?
|
||||
p = Discourse.store.cdn_url(p)
|
||||
end
|
||||
p =~ /^http/ ? p : cdn_path(p)
|
||||
|
||||
(p =~ /^http/ || p =~ /^\/\//) ? p : cdn_path(p)
|
||||
end
|
||||
|
||||
def cdn_relative_path(path)
|
||||
|
Reference in New Issue
Block a user