FIX: redirect url after anonymizing a user

This commit is contained in:
Neil Lalonde 2016-03-03 11:58:58 -05:00
parent 79cc602bcc
commit 3b18a5d59d
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ const AdminUser = Discourse.User.extend({
}).then(function(data) {
if (data.success) {
if (data.username) {
document.location = Discourse.getURL("/admin/users/" + data.username);
document.location = Discourse.getURL("/admin/users/" + user.get('id') + "/" + data.username);
} else {
document.location = Discourse.getURL("/admin/users/list/active");
}