fixes #788 better redirect after file upload when per_page_uploads mode

see explanation on https://github.com/gollum/gollum/issues/788