From b0211772cb38c114ba2eb0b572428c9093fa1b3d Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 13 Sep 2019 17:22:43 +0100 Subject: [PATCH] FIX: Explicitly specify the format when loading `/associate/{{token}}` In IE11, the browser returns the cached HTML response, rather than the JSON formatted response. A better solution may be to add a `Vary: Accept` header to all of our HTML responses, but this commit should solve the immediate issue. --- .../javascripts/discourse/routes/associate-account.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/routes/associate-account.js.es6 b/app/assets/javascripts/discourse/routes/associate-account.js.es6 index dfbe2e52f7..d89654e078 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) )