Unsafe redirect error - What is wrong with my config?

I’m getting a 500 UnsafeRedirectError. However - the redirect URL is to my own domain.

I’m guessing this means I have an error in my config, but can’t figure out what it is.

Error:

ActionController::Redirecting::UnsafeRedirectError: Unsafe redirect to "https://SkydiveDesigner.app/j/robs-tbs?tab=comments", pass allow_other_host: true to redirect anyway.

and in environments/production.rb

  Rails.application.routes.default_url_options = {host: 'SkydiveDesigner.app', protocol: 'https' }

  config.action_controller.default_url_options = Rails.application.routes.default_url_options
  config.action_mailer.default_url_options = Rails.application.routes.default_url_options

what am I missing?

thank you

(Rails 7.0)

A bit of a long shot, but since domain names don’t technically include upper-case letters, try { host: 'skydivedesigner.app', protocol: 'https' }.

1 Like

yup - seems like that was the problem.

Thank you!

1 Like