]> source.dussan.org Git - sonarqube.git/commitdiff
fix js error when the force authentication is enabled
authorStas Vilchik <vilchiks@gmail.com>
Fri, 28 Aug 2015 13:23:14 +0000 (15:23 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 28 Aug 2015 13:23:14 +0000 (15:23 +0200)
server/sonar-web/src/main/js/apps/main/app.jsx

index 938b2e8e184358d1155f83b292ccc53e141f2983..c2ea47733e23a736901790bd63ef9178e5cbedb9 100644 (file)
@@ -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(),