From e3b9a1e3bd5c04edc111608a391e51606732b150 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Wed, 22 Oct 2014 15:24:28 +0200 Subject: [PATCH] SONAR-5762 Fix redirection on component viewer when opened in Eclipse browser --- .../main/webapp/WEB-INF/app/controllers/resource_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5