mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 11:26:28 +08:00
Remove getUrl on impersonate redirect
As said by @riking @nlalonde and @ZogStriP
This commit is contained in:
@ -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'));
|
||||
|
Reference in New Issue
Block a user