SONAR-2296 Sonar behind a HTTPS reverse proxy sometimes fall back to HTTP

This commit is contained in:
Julien Lancelot 2013-01-21 15:21:22 +01:00
parent eb09f615d5
commit f9675acba2
2 changed files with 7 additions and 1 deletions

View File

@ -212,4 +212,10 @@ class ApplicationController < ActionController::Base
def category_name(category)
message("property.category.#{category}", :default => category)
end
# Force url_to to use relative path
def default_url_options(options)
{:only_path => true}
end
end

View File

@ -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
map.home '', :controller => :dashboard, :action => :index, :only_path => true
map.root :controller => :dashboard, :action => :index
# page plugins