From fe3a76817d268a2e2bbd8c3aafa63b14d379eeef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 12 Feb 2014 20:23:57 -0800 Subject: [PATCH] fix login on sub-directory install --- .../javascripts/discourse/controllers/login_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/login_controller.js b/app/assets/javascripts/discourse/controllers/login_controller.js index de982a55d5f..4a2b8dab7f8 100644 --- a/app/assets/javascripts/discourse/controllers/login_controller.js +++ b/app/assets/javascripts/discourse/controllers/login_controller.js @@ -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(); }