Hi there,
When I output the ReceiptUrl in an email template for Forms For Editors like this:
@GetString("Submit.ReceiptUrl")
I end up with a double PID in the URL:
/Default.aspx?ID=61&PID=59&pid=59&s=WQBqAEsAbAA2AGoAUwB0ADUAVABBAD0A
This then causes the module to fail loading the filled in form.
Looks like this code in Frontend.vb is causing it:
template.SetTag("Submit.ReceiptUrl", String.Format("{0}?{1}", Context.Current.Request.ServerVariables("SCRIPT_NAME"), Context.Current.Request.ServerVariables("QUERY_STRING")) & "&pid=" & ParagraphId & "&s=" & submit.SubmitToken)
There's already a PID in the querystring, and then another is added explicitly. The first one seems to come from the form:
<form method="post" action="/Admin/Public/404.aspx" enctype="multipart/form-data" class=" DMForms" id="dw-form-3" onsubmit="s=function(e){e.elements['FormCH1_h'].value='e5b48be0d492e9385f10e7467bcdca0d';e.elements['_sys_to_email'].value='';e.setAttribute('action', '/Default.aspx?ID=61&PID=59');return true};return s(this);">
Bug, right?