From aac947247b9e0754d4c52344fc2efc00cf40138f Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 23 Jan 2013 16:14:12 +0100 Subject: [PATCH] SONAR-2296 Revert modification because the server hosting sonar should be updated instead of the code --- .../webapp/WEB-INF/app/controllers/application_controller.rb | 5 ----- sonar-server/src/main/webapp/WEB-INF/config/routes.rb | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/application_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/application_controller.rb index 2f765f95f1b..58bc66a29e5 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/application_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/application_controller.rb @@ -213,9 +213,4 @@ class ApplicationController < ActionController::Base message("property.category.#{category}", :default => category) end - # Force url_to to use relative path - def default_url_options(options) - {:only_path => true} - end - end diff --git a/sonar-server/src/main/webapp/WEB-INF/config/routes.rb b/sonar-server/src/main/webapp/WEB-INF/config/routes.rb index 642c8d9e340..6cfed6caea7 100644 --- a/sonar-server/src/main/webapp/WEB-INF/config/routes.rb +++ b/sonar-server/src/main/webapp/WEB-INF/config/routes.rb @@ -30,7 +30,7 @@ ActionController::Routing::Routes.draw do |map| map.resources 'properties', :path_prefix => 'api', :controller => 'api/properties', :requirements => { :id => /.*/ } # home page - map.home '', :controller => :dashboard, :action => :index, :only_path => true + map.home '', :controller => :dashboard, :action => :index map.root :controller => :dashboard, :action => :index # page plugins -- 2.39.5