Update discourse.js

Inserted  if (url.indexOf(u) != -1) return url; in getURL function because of bug in subdirectory install on some urls doubles relative url prefix, for example /forum/forum/latest.json. With this fix it works fine.
This commit is contained in:
demil 2013-11-12 02:36:03 +01:00
parent 3473734af0
commit adcfa4cf9f
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;
},