mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
fix login on sub-directory install
This commit is contained in:
parent
794c7bf730
commit
fe3a76817d
1 changed files with 2 additions and 2 deletions
|
@ -140,8 +140,8 @@ Discourse.LoginController = Discourse.Controller.extend(Discourse.ModalFunctiona
|
||||||
}
|
}
|
||||||
// Reload the page if we're authenticated
|
// Reload the page if we're authenticated
|
||||||
if (options.authenticated) {
|
if (options.authenticated) {
|
||||||
if (window.location.pathname === '/login') {
|
if (window.location.pathname === Discourse.getURL('/login')) {
|
||||||
window.location.pathname = '/';
|
window.location.pathname = Discourse.getURL('/');
|
||||||
} else {
|
} else {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue