Merge pull request #959 from chrishunt/chrishunt/login-required-fixes

'login required' site setting improvements
This commit is contained in:
Sam
2013-06-04 19:09:40 -07:00
4 changed files with 18 additions and 14 deletions

View File

@@ -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;
}