aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/webapp
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-03-30 17:10:39 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-03-30 17:10:39 +0200
commit4366491d73efe1e5bd400c460c5918dbd11a0bb3 (patch)
treeac6fb1a2d812074a3cb2ad7c21759d6681e1c875 /server/sonar-web/src/main/webapp
parent97371fc61a2b814e6bf965b6c7d4d9d8494c07bf (diff)
downloadsonarqube-4366491d73efe1e5bd400c460c5918dbd11a0bb3.tar.gz
sonarqube-4366491d73efe1e5bd400c460c5918dbd11a0bb3.zip
SONAR-6331 open overview by default
Diffstat (limited to 'server/sonar-web/src/main/webapp')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb
index 9ec1e477893..e3e3729b12e 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb
@@ -29,6 +29,7 @@ class DashboardController < ApplicationController
if !@resource || @resource.display_dashboard?
redirect_if_bad_component()
load_dashboard()
+ redirect_if_overview()
load_authorized_widget_definitions()
else
if !@resource || !@snapshot
@@ -214,6 +215,12 @@ class DashboardController < ApplicationController
end
end
+ def redirect_if_overview
+ if @resource && !params[:did]
+ redirect_to :controller => 'overview', :action => 'index', :id => @resource.key
+ end
+ end
+
def project_not_found
flash[:error] = message('dashboard.project_not_found')
redirect_to :action => :index