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
This commit is contained in:
David Taylor 2020-02-25 18:01:33 +00:00 committed by GitHub
parent b0675075f7
commit 96ac4fc072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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`);
}
});