Skip to content

Commit

Permalink
Perform a hard refresh upon signout.
Browse files Browse the repository at this point in the history
Closes #3458.
  • Loading branch information
rwjblue committed Jul 30, 2014
1 parent fe2e3f4 commit 7357ece
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/client/routes/signout.js
@@ -1,5 +1,6 @@
import styleBody from 'ghost/mixins/style-body';
import loadingIndicator from 'ghost/mixins/loading-indicator';
import ghostPaths from 'ghost/utils/ghost-paths';

var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleBody, loadingIndicator, {
classNames: ['ghost-signout'],
Expand All @@ -8,11 +9,15 @@ var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleB
if (Ember.canInvoke(transition, 'send')) {
transition.send('invalidateSession');
transition.abort();
this.transitionTo('signin');
this.hardRefresh();
} else {
this.send('invalidateSession');
this.transitionTo('signin');
this.hardRefresh();
}
},

hardRefresh: function () {
window.location = ghostPaths().adminRoot + '/signin/';
}
});

Expand Down

0 comments on commit 7357ece

Please sign in to comment.