Merge pull request #3851 from xfalcox/patch-3

Fix impersonate redirect on subfolder install
This commit is contained in:
Neil Lalonde 2015-10-14 11:02:41 -04:00
commit 37c783c348
1 changed files with 1 additions and 1 deletions

View File

@ -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.BaseUri;
}).catch(function(e) {
if (e.status === 404) {
bootbox.alert(I18n.t('admin.impersonate.not_found'));