Thanks Torben, but site_node::conn_url does not seem to return anything. Is it meant to be used directly?
Even though it is easier to fix the return url in the confirm template, I can see this issue occurring again when there is a POST to a mapped subsite page. It should be solved in the RP.
Gustaf, I see your point about converting POST vars to GET vars, but we already do this in the RP (grep [export_entire_form_as_url_vars]). File contents are not included in the URL, but written to temporary locations in the file system. Only the file properties are available in the POST vars.
I looked into rp_internal_redirect but I'm not sure how to convert a request URL like /site1/page into a physical path - is there a proc for that?