fixes #788 better redirect after file upload when per_page_uploads mode