]> source.dussan.org Git - sonarqube.git/commitdiff
fix compatibility with eclipse plugin
authorStas Vilchik <vilchiks@gmail.com>
Thu, 19 Feb 2015 16:16:21 +0000 (17:16 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 19 Feb 2015 16:16:21 +0000 (17:16 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issue_controller.rb
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb

index 3b14a29da018d0565c1eefc7c7025f78ff687b32..da7bb1f10ba72ec7e6f67772f93b3f6f2c70a747 100644 (file)
@@ -109,7 +109,7 @@ class IssueController < ApplicationController
 
   def show
     # the redirect is needed for the backward compatibility with eclipse plugin
-    redirect_to :action => 'search', :anchor => 'issues=' + params[:id]
+    redirect_to :controller => 'issues', :action => 'search', :anchor => 'issues=' + params[:id]
   end
 
 
index e384ae002488b73d571c8d6826adbc9b2500420f..2d72b550e06bdf955aa1475737de0c05053eef72 100644 (file)
@@ -37,9 +37,7 @@ class ResourceController < ApplicationController
       component_key = component.key
     end
 
-    anchor = "component=#{component_key}"
-    anchor += "&tab=#{params[:tab]}" if params[:tab]
-    redirect_to url_for(:controller => 'component', :action => 'index') + '#' + anchor
+    redirect_to url_for(:controller => 'component', :action => 'index', :id => component_key)
   end
 
 end