fixes #788 better redirect after file upload

please read https://github.com/gollum/gollum/issues/788 for details