From 9c2c0399220e5c3a07a8a63d7bec922fa1baf7d5 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 23 Nov 2016 17:02:39 +0100 Subject: show generic 404 page when a project is not found --- .../src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'server') 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 de4577c9110..5d9e1d37613 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 @@ -56,8 +56,7 @@ class DashboardController < ApplicationController private def project_not_found - flash[:error] = message('dashboard.project_not_found') - redirect_to :action => :index + raise ActionController::RoutingError.new('Not Found') end def project_not_analyzed -- cgit v1.2.3