mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
fix login on sub-directory install
This commit is contained in:
@@ -140,8 +140,8 @@ Discourse.LoginController = Discourse.Controller.extend(Discourse.ModalFunctiona
|
||||
}
|
||||
// Reload the page if we're authenticated
|
||||
if (options.authenticated) {
|
||||
if (window.location.pathname === '/login') {
|
||||
window.location.pathname = '/';
|
||||
if (window.location.pathname === Discourse.getURL('/login')) {
|
||||
window.location.pathname = Discourse.getURL('/');
|
||||
} else {
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user