resolve uri path
parent
63bb01a67e
commit
24149b3d0c
|
@ -82,6 +82,7 @@ class MechanizeCr::Form
|
||||||
end
|
end
|
||||||
successful_controls.each do |ctrl|
|
successful_controls.each do |ctrl|
|
||||||
value = ctrl.query_value
|
value = ctrl.query_value
|
||||||
|
next if value[0] == ""
|
||||||
query.push(value)
|
query.push(value)
|
||||||
end
|
end
|
||||||
query
|
query
|
||||||
|
|
|
@ -93,6 +93,7 @@ module MechanizeCr
|
||||||
referer_uri = current_page.uri
|
referer_uri = current_page.uri
|
||||||
host = referer_uri.host
|
host = referer_uri.host
|
||||||
scheme = referer_uri.scheme
|
scheme = referer_uri.scheme
|
||||||
|
uri = "/" + uri unless uri[0] == '/'
|
||||||
new_uri = URI.new(scheme: scheme, host: host, path: uri)
|
new_uri = URI.new(scheme: scheme, host: host, path: uri)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue