mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00: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:
parent
b0675075f7
commit
96ac4fc072
@ -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`);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user