From: Julien Lancelot Date: Thu, 31 Mar 2016 07:41:41 +0000 (+0200) Subject: SONAR-7494 Fix drilldown redirection X-Git-Tag: 5.5-M12~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8f3250db5975943e55dfdfc9b83ccb3bd9cecc3d;p=sonarqube.git SONAR-7494 Fix drilldown redirection --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb index 4289af1991e..32c2dd1aa3a 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb @@ -26,9 +26,9 @@ class DrilldownController < ApplicationController metric = params[:metric] || 'ncloc' period = params[:period].to_i if params[:period].present? && params[:period].to_i > 0 if period - return redirect_to("/component_measures/metric/#{metric}?id=#{url_encode(@resource.key)}&period=#{period}") + return redirect_to(ApplicationController.root_context + "/component_measures/metric/#{metric}?id=#{url_encode(@resource.key)}&period=#{period}") else - return redirect_to("/component_measures/metric/#{metric}?id=#{url_encode(@resource.key)}") + return redirect_to(ApplicationController.root_context + "/component_measures/metric/#{metric}?id=#{url_encode(@resource.key)}") end end