From f0c25c9b3bd66a49548d83b92d0a55cf73ff2656 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 28 Aug 2015 15:23:14 +0200 Subject: [PATCH] fix js error when the force authentication is enabled --- server/sonar-web/src/main/js/apps/main/app.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/sonar-web/src/main/js/apps/main/app.jsx b/server/sonar-web/src/main/js/apps/main/app.jsx index 938b2e8e184..c2ea47733e2 100644 --- a/server/sonar-web/src/main/js/apps/main/app.jsx +++ b/server/sonar-web/src/main/js/apps/main/app.jsx @@ -45,6 +45,11 @@ class App { * Start the Main App */ start() { + if (window.location.pathname.indexOf('/sessions/') !== -1) { + // do not run any app on the login page + return; + } + App.initLanguage(this.options.lang); $.when( window.requestMessages(), -- 2.39.5