def redirect_to_with_jpmobile(options = {}, response_status = {})
if apply_trans_sid? and jpmobile_session_id
case options
when %r{^\w[\w+.-]*:.*}
when String
unless options.match(%r#{session_key}/)
url = URI.parse(options)
if url.query
url.query += "&#{session_key}=#{jpmobile_session_id}"
else
url.query = "#{session_key}=#{jpmobile_session_id}"
end
options = url.to_s
end
when :back
when Hash
unless options[session_key.to_sym]
options[session_key.to_sym] = jpmobile_session_id
end
else
end
end
redirect_to_without_jpmobile(options, response_status)
end