From: Stas Vilchik Date: Thu, 19 Feb 2015 16:16:21 +0000 (+0100) Subject: fix compatibility with eclipse plugin X-Git-Tag: 5.1-RC1~166 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=829e188955eb7a517d5ea7943b0e9b22eb6a8f40;p=sonarqube.git fix compatibility with eclipse plugin --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issue_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issue_controller.rb index 3b14a29da01..da7bb1f10ba 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issue_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issue_controller.rb @@ -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 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 e384ae00248..2d72b550e06 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 @@ -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