mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: Category images were not using the CDN
This commit is contained in:
parent
722c43b912
commit
2a4b30346c
3 changed files with 14 additions and 4 deletions
|
@ -6,6 +6,8 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
|
|||
_docTitle: document.title,
|
||||
|
||||
getURL: function(url) {
|
||||
if (!url) { return url; }
|
||||
|
||||
// If it's a non relative URL, return it.
|
||||
if (url.indexOf('http') === 0) return url;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue