Skip to content

Commit

Permalink
Revert "Force domain name when redirecting (#2024)"
Browse files Browse the repository at this point in the history
This reverts commit 06e62c1.

Signed-off-by: David A. Wheeler <[email protected]>
  • Loading branch information
david-a-wheeler committed Aug 9, 2023
1 parent 06e62c1 commit 4dd0467
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/helpers/sessions_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4dd0467

Please sign in to comment.