mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: redirect to forum home page when impersonating
This commit is contained in:
parent
4f25278b39
commit
753f4d1b7b
@ -231,7 +231,7 @@ const AdminUser = Discourse.User.extend({
|
||||
type: 'POST',
|
||||
data: { username_or_email: this.get('username') }
|
||||
}).then(function() {
|
||||
document.location = Discourse.BaseUri;
|
||||
document.location = Discourse.getURL("/");
|
||||
}).catch(function(e) {
|
||||
if (e.status === 404) {
|
||||
bootbox.alert(I18n.t('admin.impersonate.not_found'));
|
||||
|
Loading…
Reference in New Issue
Block a user