FIX: Chrome has a bug where if you request the same URL with a different

MIME type, then leave and hit the back button, you'll get the last MIME
type requested instead of HTML. This fixes it.
This commit is contained in:
Robin Ward
2014-02-10 12:43:17 -05:00
parent b61b33c0fa
commit 45afed8720
2 changed files with 3 additions and 3 deletions

View File

@ -388,7 +388,7 @@ Discourse.AdminUser.reopenClass({
},
find: function(username) {
return Discourse.ajax("/admin/users/" + username).then(function (result) {
return Discourse.ajax("/admin/users/" + username + ".json").then(function (result) {
result.loadedDetails = true;
return Discourse.AdminUser.create(result);
});