From 8f3250db5975943e55dfdfc9b83ccb3bd9cecc3d Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 31 Mar 2016 09:41:41 +0200 Subject: [PATCH] SONAR-7494 Fix drilldown redirection --- .../webapp/WEB-INF/app/controllers/drilldown_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5