diff options
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb | 7 |
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 |