diff --git a/app/assets/javascripts/discourse.js b/app/assets/javascripts/discourse.js index 5c0b4c7597b..b924a0e092f 100644 --- a/app/assets/javascripts/discourse.js +++ b/app/assets/javascripts/discourse.js @@ -25,7 +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; + if (url.indexOf(u) !== -1) return url; return u + url; },