fixes #2462: An error on the upload page shouldn't wipe out the url/ref params

This commit is contained in:
r888888888
2015-12-28 14:57:47 -08:00
parent 3221ff08f8
commit 329553ea1c

View File

@@ -24,6 +24,8 @@
<%= error_messages_for "upload" %>
<%= form_for(@upload, :html => {:multipart => true, :class => "simple_form", :id => "form"}) do |f| %>
<%= hidden_field_tag :url, params[:url] %>
<%= hidden_field_tag :ref, params[:ref] %>
<%= hidden_field_tag :normalized_url, @normalized_url %>
<%= f.hidden_field :referer_url, :value => @source.try(:referer_url) %>