mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 11:52:56 +08:00
Fix impersonate redirect on subfolder install
Impersonate was redirecting to base site, instead of Discourse when using subfolder install.
This commit is contained in:
parent
207cb4ff0c
commit
ccd46bf431
|
@ -228,7 +228,7 @@ const AdminUser = Discourse.User.extend({
|
|||
type: 'POST',
|
||||
data: { username_or_email: this.get('username') }
|
||||
}).then(function() {
|
||||
document.location = Discourse.getURL("/");
|
||||
document.location = Discourse.getURL(Discourse.BaseUri);
|
||||
}).catch(function(e) {
|
||||
if (e.status === 404) {
|
||||
bootbox.alert(I18n.t('admin.impersonate.not_found'));
|
||||
|
|
Loading…
Reference in New Issue
Block a user