Redirection-after-upload fix