From: Jean-Baptiste Lievremont Date: Wed, 22 Oct 2014 13:24:28 +0000 (+0200) Subject: SONAR-5762 Fix redirection on component viewer when opened in Eclipse browser X-Git-Tag: 4.5.1-RC1~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e3b9a1e3bd5c04edc111608a391e51606732b150;p=sonarqube.git SONAR-5762 Fix redirection on component viewer when opened in Eclipse browser --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb index 5f595b8daac..d4db714a6af 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb @@ -38,7 +38,7 @@ class ResourceController < ApplicationController anchor = "component=#{component_key}" anchor += "&tab=#{params[:tab]}" if params[:tab] - redirect_to :controller => 'component', :action => 'index', :anchor => anchor + redirect_to url_for(:controller => 'component', :action => 'index') + '#' + anchor end # deprecated stuff for drilldown