diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-01-23 16:14:12 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-01-23 16:14:24 +0100 |
commit | aac947247b9e0754d4c52344fc2efc00cf40138f (patch) | |
tree | b64d31d9b8875a4743968f980132927f2ce9c387 /sonar-server | |
parent | 1640d3244e3c4803aa0e2e90ea4a1908c9245318 (diff) | |
download | sonarqube-aac947247b9e0754d4c52344fc2efc00cf40138f.tar.gz sonarqube-aac947247b9e0754d4c52344fc2efc00cf40138f.zip |
SONAR-2296 Revert modification because the server hosting sonar should be updated instead of the code
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/application_controller.rb | 5 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/config/routes.rb | 2 |
2 files changed, 1 insertions, 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 |