diff --git a/app/assets/javascripts/discourse/controllers/login_controller.js b/app/assets/javascripts/discourse/controllers/login_controller.js index 15906f893..a84cb70f5 100644 --- a/app/assets/javascripts/discourse/controllers/login_controller.js +++ b/app/assets/javascripts/discourse/controllers/login_controller.js @@ -139,7 +139,11 @@ Discourse.LoginController = Discourse.Controller.extend(Discourse.ModalFunctiona } // Reload the page if we're authenticated if (options.authenticated) { - window.location.reload(); + if (window.location.pathname === '/login') { + window.location.pathname = '/'; + } else { + window.location.reload(); + } return; }