]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7494 Fix drilldown redirection
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 31 Mar 2016 07:41:41 +0000 (09:41 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 31 Mar 2016 11:09:07 +0000 (13:09 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb

index 4289af1991efca21bbb6285563178081c3220986..32c2dd1aa3ad63a10b24ae982908bf86695e4b52 100644 (file)
@@ -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