From 96ac4fc07277793307eccc3755590871c00fd9b5 Mon Sep 17 00:00:00 2001
From: David Taylor <david@taylorhq.com>
Date: Tue, 25 Feb 2020 18:01:33 +0000
Subject: [PATCH] FIX: Include `.json` suffix for email login route (#9041)

In IE11, the browser returns the cached HTML response, rather than the JSON formatted response. Adding the `.json` suffix ensures that the cache is not shared. Same root cause as b0211772
---
 app/assets/javascripts/discourse/routes/email-login.js.es6 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/assets/javascripts/discourse/routes/email-login.js.es6 b/app/assets/javascripts/discourse/routes/email-login.js.es6
index 642d5ee3d67..34936369b16 100644
--- a/app/assets/javascripts/discourse/routes/email-login.js.es6
+++ b/app/assets/javascripts/discourse/routes/email-login.js.es6
@@ -7,6 +7,6 @@ export default DiscourseRoute.extend({
   },
 
   model(params) {
-    return ajax(`/session/email-login/${params.token}`);
+    return ajax(`/session/email-login/${params.token}.json`);
   }
 });