fix redirect

pull/402/head
Pete Matsyburka 2 months ago
parent 1c8a7b6a7c
commit 80a7385183

@ -20,7 +20,7 @@ class ConsoleRedirectController < ApplicationController
redir_uri = Addressable::URI.parse(params[:redir]) redir_uri = Addressable::URI.parse(params[:redir])
path = redir_uri.path if params[:redir].to_s.starts_with?(Docuseal::CONSOLE_URL) path = redir_uri.path if params[:redir].to_s.starts_with?(Docuseal::CONSOLE_URL)
redirect_to "#{Docuseal::CONSOLE_URL}#{path}?#{{ **redir_uri.query_values, 'auth' => auth }.to_query}", redirect_to "#{Docuseal::CONSOLE_URL}#{path}?#{{ **redir_uri&.query_values, 'auth' => auth }.to_query}",
allow_other_host: true allow_other_host: true
end end
end end

Loading…
Cancel
Save