diff --git a/app/core/auth.coffee b/app/core/auth.coffee index 75e321de0..187ea5b99 100644 --- a/app/core/auth.coffee +++ b/app/core/auth.coffee @@ -51,10 +51,7 @@ module.exports.loginUser = (userObject, failure=genericFailure, nextURL=null) -> module.exports.logoutUser = -> FB?.logout?() callback = -> - if (window.location.href.indexOf("/account/settings") > -1) - window.location = '/' - else - window.location.reload() + window.location = '/hoc' res = $.post('/auth/logout', {}, callback) res.fail(genericFailure)