don't redirect to iauth if it's in development
update frontend: fixed double slash when downloading a file which is in root path