mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:50:26 -06:00
Redirect to '/' if OmniAuth login from '/login'
This commit is contained in:
parent
28aeb1d36c
commit
3774808a6e
@ -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 New Issue
Block a user