diff --git a/app/assets/javascripts/admin/models/admin-user.js.es6 b/app/assets/javascripts/admin/models/admin-user.js.es6 index 12e128a9c..1e83de620 100644 --- a/app/assets/javascripts/admin/models/admin-user.js.es6 +++ b/app/assets/javascripts/admin/models/admin-user.js.es6 @@ -228,7 +228,7 @@ const AdminUser = Discourse.User.extend({ type: 'POST', data: { username_or_email: this.get('username') } }).then(function() { - document.location = Discourse.getURL(Discourse.BaseUri); + document.location = Discourse.BaseUri; }).catch(function(e) { if (e.status === 404) { bootbox.alert(I18n.t('admin.impersonate.not_found'));