diff --git a/config/application.rb b/config/application.rb index a465f8b47d4..20cbc7451ab 100644 --- a/config/application.rb +++ b/config/application.rb @@ -186,6 +186,10 @@ module Discourse require 'auth' + if GlobalSetting.relative_url_root.present? + config.relative_url_root = GlobalSetting.relative_url_root + end + if Rails.env == "test" if ENV['LOAD_PLUGINS'] == "1" Discourse.activate_plugins!