chore: allow trailing slash on FRONTEND_URL

This commit is contained in:
gabrieljablonski 2025-05-13 17:45:25 -03:00
parent 027eb8de0b
commit 3e5a42e5bc
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ Rails.application.configure do
config.active_job.queue_adapter = :sidekiq
Rails.application.routes.default_url_options = { host: ENV['FRONTEND_URL'] }
Rails.application.routes.default_url_options = { host: ENV['FRONTEND_URL'].to_s.chomp('/') }
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log

View File

@ -102,5 +102,5 @@ Rails.application.configure do
# :sendgrid for Sendgrid
config.action_mailbox.ingress = ENV.fetch('RAILS_INBOUND_EMAIL_SERVICE', 'relay').to_sym
Rails.application.routes.default_url_options = { host: ENV['FRONTEND_URL'] }
Rails.application.routes.default_url_options = { host: ENV['FRONTEND_URL'].to_s.chomp('/') }
end

View File

@ -50,7 +50,7 @@ Rails.application.configure do
# config.active_job.queue_adapter = :resque
# config.active_job.queue_name_prefix = "chatwoot_#{Rails.env}"
Rails.application.routes.default_url_options = { host: ENV['FRONTEND_URL'] }
Rails.application.routes.default_url_options = { host: ENV['FRONTEND_URL'].to_s.chomp('/') }
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).