From 4dd0467af1062499fb38815447e77cac1d69a120 Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Wed, 9 Aug 2023 14:38:48 -0400 Subject: [PATCH] Revert "Force domain name when redirecting (#2024)" This reverts commit 06e62c176a4d41a973373940bfed4a488fe11c94. Signed-off-by: David A. Wheeler --- app/helpers/sessions_helper.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/helpers/sessions_helper.rb b/app/helpers/sessions_helper.rb index 94e842492..d7bd4e91f 100644 --- a/app/helpers/sessions_helper.rb +++ b/app/helpers/sessions_helper.rb @@ -28,8 +28,6 @@ def remove_locale_query(url_query) def force_locale_url(original_url, locale) url = URI.parse(original_url) Rails.logger.info "DEBUG: original_url=<#{url}> host=#{url.host}" - url.host = ENV.fetch('PUBLIC_HOSTNAME', url.host) - Rails.logger.info "DEBUG: newhostname_url=<#{url}> host=#{url.host}" # Remove locale from query string and main path. The removing # substitution will sometimes remove too much, so we prepend a '/' # if that happens.