mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Redirect to '/' if OmniAuth login from '/login'
This commit is contained in:
parent
28aeb1d36c
commit
3774808a6e
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue