Merge pull request #1644 from demil/patch-1

Update discourse.js
This commit is contained in:
Robin Ward 2013-11-12 08:16:42 -08:00
commit 2711a9eef0
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
if (u[u.length-1] === '/') {
u = u.substring(0, u.length-1);
}
if (url.indexOf(u) != -1) return url;
return u + url;
},