Skip to content

A platform for community discussion. Free, open, simple.

FIX: Explicitly specify the format when loading `/associate/{{token}}`

David Taylorb0211772cb38
diff --git a/app/assets/javascripts/discourse/routes/associate-account.js.es6 b/app/assets/javascripts/discourse/routes/associate-account.js.es6
index dfbe2e52f75..d89654e0784 100644
--- a/app/assets/javascripts/discourse/routes/associate-account.js.es6
+++ b/app/assets/javascripts/discourse/routes/associate-account.js.es6
@@ -7,7 +7,7 @@ export default Discourse.Route.extend({
const params = this.paramsFor("associate-account");
this.replaceWith(`preferences.account`, this.currentUser).then(() =>
Ember.run.next(() =>
- ajax(`/associate/${encodeURIComponent(params.token)}`)
+ ajax(`/associate/${encodeURIComponent(params.token)}.json`)
.then(model => showModal("associate-account-confirm", { model }))
.catch(popupAjaxError)
)