mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
Logout takes you to the front page instead of leaving you on your user activity page
This commit is contained in:
parent
879aa06601
commit
57baf1f112
@ -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('/');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user