Project

General

Profile

Patch #21169 » session-path-when-using-RAILS_RELATIVE_URL_ROOT.patch

Daniel Ritz, 2015-11-06 20:01

View differences:

config/application.rb
72 72
    # can change it (environments/ENV.rb would take precedence over it)
73 73
    config.log_level = Rails.env.production? ? :info : :debug
74 74

  
75
    config.session_store :cookie_store, :key => '_redmine_session'
75
    config.session_store :cookie_store,
76
      :key => '_redmine_session',
77
      :path => (config.relative_url_root.nil?) ? '/' : config.relative_url_root
76 78

  
77 79
    if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
78 80
      instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
(1-1/2)