2
0
Fork 0
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:
Robin Ward 2015-02-18 12:30:41 -05:00
parent 722c43b912
commit 2a4b30346c
3 changed files with 14 additions and 4 deletions

View file

@ -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;