mirror of
https://github.com/SonarSource/sonarqube.git
synced 2024-09-07 21:31:52 +02:00
SONAR-2296 Sonar behind a HTTPS reverse proxy sometimes fall back to HTTP
This commit is contained in:
parent
eb09f615d5
commit
f9675acba2
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user