Fix redirect for file uploads and marks