mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Remove getUrl on impersonate redirect
As said by @riking @nlalonde and @ZogStriP
This commit is contained in:
parent
ccd46bf431
commit
dfed999ec8
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ const AdminUser = Discourse.User.extend({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: { username_or_email: this.get('username') }
|
data: { username_or_email: this.get('username') }
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
document.location = Discourse.getURL(Discourse.BaseUri);
|
document.location = Discourse.BaseUri;
|
||||||
}).catch(function(e) {
|
}).catch(function(e) {
|
||||||
if (e.status === 404) {
|
if (e.status === 404) {
|
||||||
bootbox.alert(I18n.t('admin.impersonate.not_found'));
|
bootbox.alert(I18n.t('admin.impersonate.not_found'));
|
||||||
|
|
Loading…
Reference in a new issue