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.
Merge pull request #1644 from demil/patch-1

Update discourse.js