diff --git a/config/application.rb b/config/application.rb index 8645015a6d..8825925ec1 100644 --- a/config/application.rb +++ b/config/application.rb @@ -79,7 +79,6 @@ class Application < Rails::Application config.bigbluebutton_secret = ENV.fetch('BIGBLUEBUTTON_SECRET', '8cd8ef52e8e101574e400365b55e11a6') - config.relative_url_root = ENV.fetch('RELATIVE_URL_ROOT', '/') # Fetch 'RELATIVE_URL_ROOT' ENV variable value while removing any trailing slashes. config.relative_url_root = ENV.fetch('RELATIVE_URL_ROOT', nil)&.sub(%r{/*\z}, '') config.relative_url_root = '/' if config.relative_url_root.blank?