discourse/discourse — pull request #1644 by demil (2013-11-12 01:36:38+00:00)
Title: 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.