From: Simon Brandhof Date: Mon, 3 Dec 2012 10:09:07 +0000 (+0100) Subject: Fix regression on /reviews/view/ X-Git-Tag: 3.4~216 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e02f334e85e68aeae423264a248bf0e6a8161743;p=sonarqube.git Fix regression on /reviews/view/ --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb index 166ddff32c5..1aa5479594e 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/reviews_controller.rb @@ -30,10 +30,16 @@ class ReviewsController < ApplicationController def index init_params() search_reviews() - + add_breadcrumbs message('sidebar.tools'), {:name => message('sidebar.tools.reviews'), :url => {:controller => 'reviews', :action => 'index'}} end + # Used for the "OLD" permalink "http://localhost:9000/reviews/view/1" + # => Since Sonar 2.13, permalinks are "http://localhost:9000/project_reviews/view/1" and are displayed in the context of the project + def view + redirect_to :controller => 'project_reviews', :action => 'view', :id => params[:id] + end + # GET def screen @violation = RuleFailure.find params[:id]