]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6331 do not open overview if dashboard name is passed
authorStas Vilchik <vilchiks@gmail.com>
Tue, 11 Aug 2015 10:41:40 +0000 (12:41 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 11 Aug 2015 10:41:40 +0000 (12:41 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb

index bd71f5b95cf58ed6075b1d0027db09377ddede15..9c084dea9795b7b884937f114f1ce03fe4171dc2 100644 (file)
@@ -27,7 +27,7 @@ class DashboardController < ApplicationController
 
   def index
     load_resource()
-    if @resource && @resource.display_dashboard? && !params[:did]
+    if @resource && @resource.display_dashboard? && !params[:did] && !params[:name]
       overview_url = url_for({:controller => 'overview', :action => :index}) + '?id=' + url_encode(@resource.key)
       return redirect_to overview_url
     end