From 7357ece639ca61a4c93d17826d2fd140718f66c0 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Wed, 30 Jul 2014 14:14:11 -0400 Subject: [PATCH] Perform a hard refresh upon signout. Closes #3458. --- core/client/routes/signout.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/client/routes/signout.js b/core/client/routes/signout.js index 8854bfcb91..a2365f4f80 100644 --- a/core/client/routes/signout.js +++ b/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'], @@ -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/'; } });