mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 00:41:16 +08:00
Logout takes you to the front page instead of leaving you on your user activity page
This commit is contained in:
@ -158,7 +158,7 @@ Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
|
|||||||
Discourse.User.logout().then(function() {
|
Discourse.User.logout().then(function() {
|
||||||
// Reloading will refresh unbound properties
|
// Reloading will refresh unbound properties
|
||||||
Discourse.KeyValueStore.abandonLocal();
|
Discourse.KeyValueStore.abandonLocal();
|
||||||
window.location.reload();
|
window.location.pathname = Discourse.getURL('/');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user