diff --git a/app/views/application/sso_redirect.html.erb b/app/views/application/sso_redirect.html.erb index 1d57b5c15..3ae666c26 100644 --- a/app/views/application/sso_redirect.html.erb +++ b/app/views/application/sso_redirect.html.erb @@ -7,7 +7,7 @@ <% param = @authorization_token ? "?auth_token=#{@authorization_token}" : '' %> - <% url_path = File.join(root_url, "users/auth/#{@active_provider.strategy_name}#{param}") %> + <% url_path = URI.join("#{ENV.fetch('DEFAULT_PROTOCOL')}://#{ENV.fetch('DEFAULT_HOST')}", "users/auth/#{@active_provider.strategy_name}#{param}") %>
<%= hidden_field_tag :authenticity_token, @authentication_token %>