]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5762 Fix redirection on component viewer when opened in Eclipse browser
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 22 Oct 2014 13:24:28 +0000 (15:24 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 22 Oct 2014 13:24:28 +0000 (15:24 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb

index 5f595b8daac882ecabc0c4a89512e2a256e5c611..d4db714a6af97bac136061b6cc932aed4dc5c8aa 100644 (file)
@@ -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