diff options
-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 |