mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 11:45:21 -05:00
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:
@@ -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`);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user